TeamCity 2020.1 on CentOS 8 - Error registering on the server
Hey. Just started with TeamCity on my server (CentOS 8). After install and run:
`
./runAll.sh start
`
I got:
```
ternativeAddresses=[192.168.160.90], Port=9091, Version='78866', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='2HVr7Vphxx87RQuc1bCRJsUD9VDLnCbt'}
[2020-08-17 16:19:19,672] 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.
[2020-08-17 16:19:19,672] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2020-08-17 16:20:11,644] INFO - r.artifacts.impl.HttpDiskCache - Cleaning up items with life time in cache greater than 172800 seconds
[2020-08-17 16:20:11,644] INFO - r.artifacts.impl.HttpDiskCache - Finished cleaning up expired items, 0 items removed
[2020-08-17 16:20:11,644] INFO - dDirectoryBasedCleanupRegistry - Removing files from /home/server/TeamCity/buildAgent/work/.old
[2020-08-17 16:20:11,713] INFO - l.directories.DirectoryMapImpl - Cleaning up old checkout directories. Default lifetime = 192 hour(s)
[2020-08-17 16:20:11,737] INFO - dDirectoryBasedCleanupRegistry - Removing files from /home/server/TeamCity/buildAgent/temp/.old
[2020-08-17 16:20:19,708] INFO - buildServer.AGENT.registration - Registering on server via URL "http://localhost:8111": AgentDetails{Name='Default Agent', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[192.168.160.90], Port=9091, Version='78866', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='2HVr7Vphxx87RQuc1bCRJsUD9VDLnCbt'}
[2020-08-17 16:20:19,710] 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.
[2020-08-17 16:20:19,710] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2020-08-17 16:21:19,748] INFO - buildServer.AGENT.registration - Registering on server via URL "http://localhost:8111": AgentDetails{Name='Default Agent', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[192.168.160.90], Port=9091, Version='78866', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='2HVr7Vphxx87RQuc1bCRJsUD9VDLnCbt'}
[2020-08-17 16:21:19,750] 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.
[2020-08-17 16:21:19,750] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2020-08-17 16:22:19,786] INFO - buildServer.AGENT.registration - Registering on server via URL "http://localhost:8111": AgentDetails{Name='Default Agent', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[192.168.160.90], Port=9091, Version='78866', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='2HVr7Vphxx87RQuc1bCRJsUD9VDLnCbt'}
[2020-08-17 16:22:19,787] 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.
[2020-08-17 16:22:19,787] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2020-08-17 16:23:19,821] INFO - buildServer.AGENT.registration - Registering on server via URL "http://localhost:8111": AgentDetails{Name='Default Agent', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[192.168.160.90], Port=9091, Version='78866', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='2HVr7Vphxx87RQuc1bCRJsUD9VDLnCbt'}
[2020-08-17 16:23:19,825] 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.
[2020-08-17 16:23:19,825] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://localhost:8111. Will continue repeating connection attempts.
[2020-08-17 16:24:19,864] INFO - buildServer.AGENT.registration - Registering on server via URL "http://localhost:8111": AgentDetails{Name='Default Agent', AgentId=null, BuildId=null, AgentOwnAddress='null', A
```
I can't get access to TeamCity <server_ip>: 8111/
Any ideas?
Please sign in to leave a comment.
It sounds like the server is either not started or not listening on port 8111. Do you see a teamcity-server.log in <teamcity home directory>/logs?
I was restarted the TeamCity and here's the output from buildAgent/logs/teamcity-agent.log "from scratch":
https://pastebin.com/t6ScdpV2
Yes, I see the teamcity-server.log. Here's the output:
https://pastebin.com/LuSQ1LBs
I can see your TeamCity server appears to be running and listening on port 8111. Your server looks to be waiting for user input in the Web UI to finalize the installation.
At this point, you need to access the Web UI from a browser (http://localhost:8111) to complete the configuration of your TeamCity server. Do you have a firewall or anything else that may be interfering with this connection?
First of all the server is the internal server. <ip>:8111 not response from browser but ping to the port 8111 does. Probably behind a firewall but I don't have a 100% certainty. I assumed it might be the firewall's fault but it will take a few hours before I could check.
Thanks for now! And I will be back when I will be know more.