TeamCity连接超时

我昨天build立了一个TeamCity服务器,直到今天早上我重新启动它,它工作正常。 我没有改变任何地方的设置,但我一直在启动teamcity-agent日志中得到这个消息:

INFO - t.AmazonInstanceMetadataReader - Amazon is not available. Amazon EC2 integration is not active: Failed to connect to http://169.254.169.254/2009-04-04. The host did not accept the connection within timeout of 7000 ms INFO - .agent.AmazonPropertiesUpdater - Fetched AmazonEC2 instance metadata: INFO - zon.agent.AmazonMetadataChecks - Amazon EC instance metadata contains no keys WARN - .agent.AmazonPropertiesUpdater - Fetched Amazon EC2 instance metadata does not contain required values. Probably this agent was not started inside Amazon EC2. Is proxy server used? ` 

然后这个:

 Call http://<ip address>:8111/RPC2 buildServer.registerAgent3: java.net.ConnectException: Connection timed out: connect WARN - buildServer.AGENT.registration - Connection to TeamCity server is probably lost. Will be trying to restore it. Take a look at logs/teamcity-agent.log for details (unless you're using custom logging). 

当试图连接到TeamCity,它说它无法连接到MySQL数据库,它是离线的或连接configuration不当 – 即使数据库在线,并且我没有改变任何事情,因为我第一次得到TeamCity工作。 我已经确保所有正在使用的端口都被转发,并允许在我的防火墙中。