TeamCity server in cloud and agents behind firewall

Hi,

We're trying to set up teamcity in the cloud, so it will be accessible to our partners. But we want to set up build agents behind corporate proxy, because some of the repositories we're going to test are not available online.

I'm having troubles registering build agent. I believe I've configured proxy for the JVM, but I'm still not able to register build agent. Below is relevant part of the log. I've also tried sending POST request to the <server URL>/app/agents/v1/register manually from the browser and it worked.

Thanks,
Dmitry

[2016-07-20 12:32:17,780]   INFO - buildServer.AGENT.registration - Using communication protocols from the Agent's internal property: [polling] 
[2016-07-20 12:32:17,780]   INFO - buildServer.AGENT.registration - Trying to register using 'polling' protocol.
[2016-07-20 12:32:17,780]  DEBUG - buildServer.AGENT.registration - Sending polling protocol registration request: POST <server URL>/app/agents/v1/register
[2016-07-20 12:32:17,870]   WARN - buildServer.AGENT.registration - Registration using 'polling' failed: java.net.SocketException: Software caused connection abort: recv failed
[2016-07-20 12:32:17,870]  DEBUG - buildServer.AGENT.registration - Registration using 'polling' failed
java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:170)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170)
    at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
    at org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
    at org.apache.commons.httpclient.ContentLengthInputStream.close(ContentLengthInputStream.java:118)
    at java.io.FilterInputStream.close(FilterInputStream.java:181)
    at org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
    at org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
    at com.intellij.openapi.util.io.StreamUtil.loadFromStream(StreamUtil.java:47)
    at com.intellij.openapi.util.io.StreamUtil.readText(StreamUtil.java:58)
    at jetbrains.buildServer.agent.impl.serverCommunication.HttpClientBasedServerApi$HttpClientResponse.<init>(HttpClientBasedServerApi.java:67)
    at jetbrains.buildServer.agent.impl.serverCommunication.HttpClientBasedServerApi.post(HttpClientBasedServerApi.java:47)
    at jetbrains.buildServer.agent.impl.serverCommunication.PollingProtocol.register(PollingProtocol.java:60)
    at jetbrains.buildServer.agent.impl.serverCommunication.PollingProtocol.registerOnServer(PollingProtocol.java:41)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.doRegisterOnBuildServer(BuildAgentImpl.java:990)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.registerOnBuildServer(BuildAgentImpl.java:954)
    at jetbrains.buildServer.agent.impl.ServerMonitor.run(ServerMonitor.java:73)
2 comments

Hello Dmitry,

Could you please describe your network configuration in more details? How did you configure proxy for JVM?

0

Hi Alina,

I don't know the details of the firewall configuration, because it's handled by IT department. I've configured proxy server and proxy port using JVM configuration utility. We don't have username/password.

Dmitry

 

0

Please sign in to leave a comment.