Cannot connect to TeamCity

I have installed TeamCity on a Windows 8 Machine and the services are both working but when I got the url I get no page. I also do not get an option for databases when installing the app. Here is the log file - any ideas?

 

[2018-03-23 17:08:40,857] 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?
[2018-03-23 17:08:41,354] INFO - .agent.impl.OsArchBitsDetector - Detecting via "wmic computersystem get systemtype", exit code: 0, output: SystemType x64-based PC
[2018-03-23 17:08:41,354] INFO - .agent.impl.OsArchBitsDetector - "teamcity.agent.os.arch.bits" detected as "64"
[2018-03-23 17:08:41,359] INFO - jetbrains.buildServer.AGENT - Start build agent
[2018-03-23 17:08:41,395] INFO - jetbrains.buildServer.AGENT - Agent Web server started on port 9090
[2018-03-23 17:08:41,399] INFO - agent.impl.AgentPortFileWriter - Writing agent runtime file to C:\TeamCity\buildAgent\logs\buildAgent.xmlRpcPort
[2018-03-23 17:08:41,401] INFO - agent.impl.AgentPortFileWriter - Launcher version is 51047
[2018-03-23 17:08:41,402] INFO - agent.impl.AgentPortFileWriter - Writing agent runtime file to C:\TeamCity\buildAgent\logs\buildAgent.xmlRpcPort :DONE!
[2018-03-23 17:08:41,402] INFO - jetbrains.buildServer.AGENT - Build agent started
[2018-03-23 17:08:41,464] INFO - buildServer.AGENT.registration - Registering on server via URL ****: AgentDetails{Name='876176-DevDB-30', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[****, ****], Port=9090, Version='51047', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='****'}
[2018-03-23 17:08:41,899] INFO - r.artifacts.impl.HttpDiskCache - Cleaning up items with life time in cache greater than 172800 seconds
[2018-03-23 17:08:41,900] INFO - r.artifacts.impl.HttpDiskCache - Finished cleaning up expired items, 0 items removed
[2018-03-23 17:08:41,901] INFO - dDirectoryBasedCleanupRegistry - Removing files from C:\TeamCity\buildAgent\work\.old
[2018-03-23 17:08:41,958] INFO - l.directories.DirectoryMapImpl - Cleaning up old checkout directories. Default lifetime = 192 hour(s)
[2018-03-23 17:08:41,985] INFO - dDirectoryBasedCleanupRegistry - Removing files from C:\TeamCity\buildAgent\temp\.old
[2018-03-23 17:08:45,471] WARN - buildServer.AGENT.registration - Error while asking server for the communication protocols via URL http://192.168.2.110:89/app/agents/protocols. Will try all protocols: java.net.ConnectException: Connection refused: connect (enable debug to see stacktrace)
[2018-03-23 17:08:45,471] INFO - buildServer.AGENT.registration - Trying to register on server using 'polling' protocol.
[2018-03-23 17:08:49,496] INFO - buildServer.AGENT.registration - Registration using 'polling' protocol failed: java.net.ConnectException: Connection refused: connect (enable debug to see stacktrace)
[2018-03-23 17:08:49,496] INFO - buildServer.AGENT.registration - Trying to register on server using 'xml-rpc' protocol.
[2018-03-23 17:08:50,523] INFO - buildServer.AGENT.registration - Registration using 'xml-rpc' protocol failed: java.net.ConnectException: Connection refused: connect (enable debug to see stacktrace)
[2018-03-23 17:08:50,523] WARN - buildServer.AGENT.registration - Error registering on the server via URL ******. Will continue repeating connection attempts.

0
1 comment

Hi Paul,

this log is from the agent. The relevant log in this situation is that from the server. The agent is the process in charge of running the builds and will display no information. The server is the one that serves the website and handles all the configuration, dispatching builds to the different agents. So the url + port you have to access is the server's, not the agent.

Be mindful, particularly in windows, that if you try to use port 80 privileges might be required or other applications might conflict. By default the address should be http://localhost:8111

After installation the first steps usually require to configure the database, but that requires accessing the server. If it's still blank, please share the teamcity-server.log with us.

0

Please sign in to leave a comment.