Unable to register new agent - Internal Server Error

All of a sudden I'm unable to get a new agent to register even after rebuilding it. On the agent I see:

[2017-11-17 08:46:17,424] INFO - buildServer.AGENT.registration - Registration using 'polling' protocol failed: Unexpected server response '500 Internal Server Error'
[2017-11-17 08:46:17,424] WARN - buildServer.AGENT.registration - Error registering on the server via URL https://<redacted>.com:8443. Will continue repeating connection attempts.
[2017-11-17 08:46:17,444] INFO - l.directories.DirectoryMapImpl - Cleaning up old checkout directories. Default lifetime = 192 hour(s)
[2017-11-17 08:46:17,480] INFO - dDirectoryBasedCleanupRegistry - Removing files from /home/teamcity/BuildAgent/temp/.old

On the TeamCity server itself I see:

[2017-11-17 08:46:14,280]   WARN -    jetbrains.buildServer.AGENT - Agent "<redacted>-150" {id=261} is unauthorized on registration

0
1 comment

Solution found. Bad plugin someone on my team had put in to load onto the agents:

[2017-11-17 08:37:01,354] INFO - n.AmazonInstanceMetadataReader - Amazon is not available. Amazon EC2 integration is not active: Failed to connect to http://169.254.169.254/2016-04-19. No route to host
[2017-11-17 08:37:01,354] INFO - .agent.AmazonPropertiesUpdater - Fetched AmazonEC2 instance metadata:
[2017-11-17 08:37:01,359] INFO - zon.agent.AmazonMetadataChecks - Amazon EC instance metadata contains no keys
[2017-11-17 08:37:01,359] 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?

Removed that and instant registration.

0

Please sign in to leave a comment.