Installation problem

I have been trying to install TeamCity 4.0.2 on a pc running Tomcat6/RedHat. I don't think the server is listening 8111. I ran an agent manually but it got connection refused error.

I dropped the war in Tomcat webapps; configured it to use MySQL. I could log in and create project. But I don't have agent, even the default one. I think I am supposed to have a default one running. I don't see errors in tomcat/logs/teamcity.log.

The instruction metioned:

   2. To configure TeamCity logging system, modify J2EE container settings to pass the following JVM options to the TeamCity web application:

      -Dlog4j.configuration=file:../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/

Up to date values and conf/teamcity-server-log4j.xml file can be looked up in the bin/teamcity-server script available in .exe and tar.gz distributions. Sample teamcity-server-log4j.xml file.

But there is no teamcity-server-log4j.xml any where. And how exactly to configure tomcat to use the logs.

Thansk,
Xianmin

6 comments
Comment actions Permalink

This is from teamcity-agent.log:

[2009-03-24 14:06:43,896]   INFO - buildServer.AGENT.registration - Registering on server: [name: Default agent, ownAddress: 10.1.100.5, ownPort: 9090, buildId: <not running build>, availableRunners: [simpleRunner]]
[2009-03-24 14:06:43,977]   WARN - buildServer.AGENT.registration - Call http://localhost:8111/RPC2 buildServer.registerAgent2: java.net.ConnectException: Connection refused

The agent tries to connect at port 8111. But I didn't find server to set anything to 8111.

Xianmin

0
Comment actions Permalink

What URL do you use to connect to your server from the browser? The same URL should be specified in the buildAgent/conf/buildAgent.properties file for serverUrl property.

0
Comment actions Permalink

I use http://xxxx:8080/TeamCity-4.0.2 to access the the web UI w/o problem.

In agent installed on the same machine I use: serverUrl=http://xxxx:8080/ or serverUrl=http://localhost:8080/. This time I got a 404.

Thanks,
Xianmin

0
Comment actions Permalink

I tried serverUrl=http://xxxx:8080/TeamCity-4.0.2 in buildAgent.properties. Now it seems work. I think your documentation needs some improvement.


Thanks,
Xianmin

0
Comment actions Permalink

I would recommend you to install agents via Java web start (Agents -> Install agent popup). In this case server URL will be discovered automatically and written into the buildAgent.properties.

0
Comment actions Permalink

I tried it. It didn't work. It would open jnlp dailog asking me if I want to run or save. If I select run, it would show the same jnlp dialog again and again. I am not sure if it is firefox issue. I can't figure out how to check which version of jre/ws the firefox uses and how to set it. This is in RedHat.

0

Please sign in to leave a comment.