TeamCity Integration on same machine

Hi,

My current setup is as follows:
TeamCity and YouTrack are hosted on the same machine.

I have managed to correctly setup  TeamCity->YouTrack integration. However, I am struggling to get the YouTrack->Teamcity integration setup.

I have followed the steps as described here(http://confluence.jetbrains.com/display/YTD4/Configuring+TeamCity+Integration). I have entered the correct url and user credentials for the TeamCity instance however consistently receive a "Can't connect to TeamCity: java.net.SocketTimeoutException: Read Time out".

I have also modified the "Read Timeout" option to 100 secs and still get the same result.

I played around with the url and changed the TeamCity server url to "http://localhost:8080/TeamCity". This actually resulted in a "Connection Successful" message. This is not ideal since all TC urls will have a localhost reference.

The only experience I have with Apache is based on the YouTrack & TeamCity installation guides.

I am really hoping to get this integration working soon. Can someone please assist?

Regards,
AM






6 comments
Comment actions Permalink
Hello Ahmad,
Since everything works fine when you set http://localhost:8080/TeamCity as a TC url, I assume something is wrong with network environment. Are you able to open http://servername:8080/TeamCity from that very server?

Regards,
  Alexander
0
Comment actions Permalink
Hi Alexander,

Yes, I am able to access both http://localhost:8080/TeamCity and http://servername:8080/TeamCity  from the host server. Is there any way I can check trace from a YouTrack perspective what's going, eg logs etc.

Regards,
AM
0
Comment actions Permalink
Ahmad,
Unfortunately, the logs won't help since the error happens on JRE or OS layer. Moreover, I suspect it's not even an error. Could you please disable your Windows firewall for a while and check if it helps? It could be blocking outbound connections from unauthorized apps or something.

Alexander
0
Comment actions Permalink
Hi Alexander,

The windows firewall is disabled. Any chance this could be an Apache issue? I have also tried this by ip address and still gives the same issue. I find it strange that the TC->YT works as expected using the above urls, but the YT->TC integration has issues.

Ahmad
0
Comment actions Permalink
Hi Alexander,

I seemed to have resolved this issue. Tomcat was configured to use our company's proxy which was setup in Tomcat startup.

  • Dhttp.proxyHost=xx
  • Dhttp.proxyPort=80
  • Dhttps.proxyHost=xx
  • Dhttps.proxyPort=80

Integration is working as expected now once I removed this.
0
Comment actions Permalink
Hi Ahmad,
Glad to hear that. Although it's not quite clear to me why TC->YT integration works.
0

Please sign in to leave a comment.