Running TeamCity on Windows 10 ?
Does anyone have a link to instructions on how the TeamCity app can be launched on Windows 10 ?
I installed TeamCity on my Windows 10 laptop. At the end of installation, the setup program launches a browser instance for http://localhost. However, localhost just shows the default/blank page that comes with IIS 10 installations. TeamCity doesn't seem to have configured any websites on IIS 10, and so http://localhost doesn't show any TeamCity UI.
The Services app shows that "TeamCity Build Agent" and "TeamCity Server" are both running. However, I don't see how the TeamCity UI can be launched.
What are the recommended ways to launch TeamCity on Windows 10 ?
Please sign in to leave a comment.
Hi,
By default, TeamCity Windows installer makes Apache server, that comes with TeamCity, listen to the port 80. It looks like that port is already being listened by IIS in your scenario. You can change the port for TeamCity either during the installation, or by editing this section in <TeamCity home>/conf/server.xml file:
Replace port 80 with another unoccupied port, e.g. 8111, and use that port to access TeamCity web UI: http://localhost:8111
Thank you, Anatoly, this worked perfectly. I was able to access TeamCity Web UI by following your instructions.
Btw the runall.bat screen shows a couple of errors. Do I need to change port settings from 80 to 8111 in any other config file to fix these errors
[2019-02-15 12:32:02,603] WARN - buildServer.AGENT.registration - Error asking server for the protocols via URL http://localhost:80/app/agents/protocols. Will try later. Details: unexpected response status code 404
[2019-02-15 12:32:02,603] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:80. Will continue repeating connection attempts.
I'm glad that helped. Regarding the agent registration error, you can resolve it by editing the `serverUrl` property in `<Build Agent home>/conf/buildAgent.properties`.
If you are using the default build agent, its home folder is located in `<TeamCity home>/buildAgent`.
Thanks again, Anatoly. The problem is fixed and I now see
[2019-02-20 12:19:51,301] WARN - buildServer.AGENT.registration - Failed to obtain server supported protocols via URL http://localhost:8111/app/agents/protocols: TeamCity Server is starting. Will try later.
[2019-02-20 12:19:51,301] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2019-02-20 12:20:36,844] INFO - buildServer.AGENT.registration - Connection to TeamCity Server has been restored using the 'polling' protocol
You are welcome. Regarding the new warning, it can be safely ignored. It means that the agent is trying to register on the server a few seconds before the server is ready. It registers successfully on a retry, when the server finishes starting up.
If you are keen to get rid of the warning, you can start the agent (<Build Agent home>\bin\agent.bat start) a minute after you start the server (<TeamCity home>\bin\teamcity-server.bat start), and the warning will go away.
Sounds good, thanks Anatoly