Windows build agent in EC2 - builds just hang

Hi,

I'm having a hard time setting up an external windows build agent in AWS. I've tried several base Amazon AMIs, but all of them seem to have the same problem. Perhaps that means there's a setup step that I missed?

After installing the agent using the installer exe, I authorize the agent and allow it to upgrade itself. I then switch the service account over to Administrator (because ATM I just want it to work). I install all of the necessary tools - git, powershell, etc. When I try to build the one project I am targeting, the builds just hang. Here's what the vcs log gives me:

[2021-05-18 21:03:44,194]   INFO -      jetbrains.buildServer.VCS - [C:\BuildAgent\temp] hg version --quiet
[2021-05-18 21:03:44,194] WARN - jetbrains.buildServer.VCS - '[C:\BuildAgent\temp] hg version --quiet' command failed.
[2021-05-18 21:03:46,739] INFO - jetbrains.buildServer.VCS - [c:\BuildAgent\bin\.]: "C:\Program Files\Git\bin\git.exe" version
[2021-05-18 21:03:54,021] INFO - jetbrains.buildServer.VCS - Using git specified by TEAMCITY_GIT_PATH: C:\Program Files\Git\bin\git.exe
[2021-05-18 21:03:54,021] INFO - jetbrains.buildServer.VCS - [c:\BuildAgent\bin\.]: "C:\Program Files\Git\bin\git.exe" version
[2021-05-18 21:03:55,483] INFO - jetbrains.buildServer.VCS - Using git specified by TEAMCITY_GIT_PATH: C:\Program Files\Git\bin\git.exe
[2021-05-18 21:03:55,483] INFO - jetbrains.buildServer.VCS - [c:\BuildAgent\bin\.]: "C:\Program Files\Git\bin\git.exe" version
[2021-05-18 21:03:55,592] INFO - jetbrains.buildServer.VCS - Git version: 2.31.1.0
[2021-05-18 21:03:55,608] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" init --initial-branch=main
[2021-05-18 21:03:55,795] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" config core.sparseCheckout true
[2021-05-18 21:03:55,889] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" config http.sslCAInfo
[2021-05-18 21:03:55,973] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" config --unset http.sslCAInfo
[2021-05-18 21:03:56,035] WARN - jetbrains.buildServer.VCS - '"C:\Program Files\Git\bin\git.exe" config --unset http.sslCAInfo' command failed.
exit code: 5
[2021-05-18 21:03:56,051] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" show-ref
[2021-05-18 21:03:56,114] WARN - jetbrains.buildServer.VCS - '"C:\Program Files\Git\bin\git.exe" show-ref' command failed.
exit code: 1
[2021-05-18 21:03:56,114] INFO - jetbrains.buildServer.VCS - [C:\BuildAgent\work\48464ddabd03f56d]: "C:\Program Files\Git\bin\git.exe" -c credential.helper= fetch --progress --recurse-submodules=no origin +refs/heads/*:refs/remotes/origin/*
[2021-05-18 21:03:56,723] WARN - jetbrains.buildServer.VCS - '"C:\Program Files\Git\bin\git.exe" -c credential.helper= fetch --progress --recurse-submodules=no origin +refs/heads/*:refs/remotes/origin/*' command failed.
exit code: -1
exception: java.lang.InterruptedException

I've left the build for over an hour and it never seems to fail, even though the vcs log seems like it should have. The agent registers fine with the server, so I think this isn't a communication issue between the agent and host. Also, git works fine as I can clone the targeted repository on the same machine without an issue.

Anyone have any thoughts on settings to look for or new things to try? I'm out of ideas.

 

Thanks,

Scott

Please sign in to leave a comment.