我昨天设置了一个 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 数据库,并且它处于离线状态或连接配置不正确 - 即使数据库处于在线状态,而且自从我第一次让 TeamCity 工作以来,我还没有改变任何东西。我已确保所有正在使用的端口都已转发并允许进入我的防火墙。