Teamcity server started twice

Hi,

We power down our VMs at 8pm and bring them back up at 7am. Then at 7.30 am we have a scheduled build in TC. This morning TC did not start the build and when I looked the logs it turned out that the server started twice. Is there a place I can check to figure out why this happend ?

teamcity-activities.log

[2014-11-19 07:11:39,069]   INFO - tbrains.buildServer.ACTIVITIES - Server Started 
[2014-11-19 07:28:49,512]   INFO - tbrains.buildServer.ACTIVITIES - Shutdown Spring components 
[2014-11-19 07:28:54,663]   INFO - tbrains.buildServer.ACTIVITIES - Spring components are shut down 
[2014-11-19 07:33:23,548]   INFO - tbrains.buildServer.ACTIVITIES - Server Started 
[2014-11-19 08:48:35,754]   INFO - tbrains.buildServer.ACTIVITIES - Build BUILD_PROMOTION{id=8164} wa


Thanks

Pawel

4 comments
Comment actions Permalink

Hi Pawel,

According to the attached log the server was stopped and started back. Please check teamcity-server.log file for more details.

0
Comment actions Permalink

Thank you.

This is what I found. Can TC restart/shutdown itself? I'm pretty sure nobdy shutdown TC on purpose.

"[2014-11-19 07:16:38,899]   INFO -   jetbrains.buildServer.SERVER - Huge logs scanning started in "F:\ProgramData\JetBrains\TeamCity\system\messages"
[2014-11-19 07:19:58,698]   INFO -   jetbrains.buildServer.SERVER - Huge logs scanning finished
[2014-11-19 07:21:38,886]   INFO -   jetbrains.buildServer.SERVER - Start loading test runs for investigations and mutes into cache...
[2014-11-19 07:21:38,918]   INFO -   jetbrains.buildServer.SERVER - Done loading test runs. Tests number: 0, cache size: 0
[2014-11-19 07:26:22,861]   WARN -     jetbrains.buildServer.AUTH - Error occurred during HTTP authentication while processing request GET '/httpAuth/app/rest/projects', from client 121.223.227.31:59186, user-agent null, no auth/user: jetbrains.buildServer.serverSide.auth.AuthenticationFailedException: There are currently no logon servers available to service the logon request.
[2014-11-19 07:28:49,275]   INFO -  jetbrains.buildServer.STARTUP - Server shutdown has been requested
[2014-11-19 07:28:49,275]   INFO -  jetbrains.buildServer.STARTUP - Current stage: The system is shutting down
"

0
Comment actions Permalink

Pawel,

TeamCity runs inside J2EE container - Tomcat. We do not manage it. Instead Tomcat manages TeamCity. In order to shutdown TeamCity one must send a command to a special Tomcat port. So TeamCity itself cannot initiate shutdown anyhow, it just does not have such abilities. Also we cannot provide any other information because it's a Tomcat which initiates server shutdown. So I'd advice to check Tomcat settings.
Also which TeamCity version do you use? If not the latest one, then please upgrade.

0
Comment actions Permalink

We are on 8.5 and this has happend once so it is not a big deal. I wil report back if I see again.

0

Please sign in to leave a comment.