Teamcity started in CentOS 7 from logs - firewall is stopped, port not in use but - unable to launch URL

Answered

Hi Executive,

Downloaded and extracted Teamcity 9.1.6 latest tar.gz in CentOS 7, 64 bit. Firewall service is off, port is not in use, log shows started, the browser URL did not show up. Launching URL says - The web page is not available. Please find catalina.out  & teamcity-server.log. I started from Teamcity/bin/

./teamcity-server.sh start

Could you please suggest regarding this. Thanks.

service iptables stop

 

teamcity-server.log

[2016-03-10 23:18:56,202] INFO - jetbrains.buildServer.STARTUP - ===========================================================
[2016-03-10 23:18:56,202] INFO - jetbrains.buildServer.STARTUP - Starting TeamCity server
[2016-03-10 23:18:56,375] INFO - jetbrains.buildServer.STARTUP - TeamCity version: 9.1.6 (build 37459), data format version 727
[2016-03-10 23:18:56,389] INFO - jetbrains.buildServer.STARTUP - OS: Linux, User: root, JRE: 1.8.0_71, OpenJDK 64-Bit Server VM (25.71-b15, mixed mode), OpenJDK Runtime Environment (1.8.0_71-b15), Oracle Corporation
[2016-03-10 23:18:56,392] INFO - jetbrains.buildServer.STARTUP - JVM parameters: -Djava.util.logging.config.file=/home/teamcity/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms750m -Xmx750m -XX:MaxPermSize=270m -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true -Djava.endorsed.dirs=/home/teamcity/TeamCity/endorsed -Dcatalina.base=/home/teamcity/TeamCity -Dcatalina.home=/home/teamcity/TeamCity -Djava.io.tmpdir=/home/teamcity/TeamCity/temp
[2016-03-10 23:18:56,393] INFO - jetbrains.buildServer.STARTUP - Garbage collection: PS Scavenge, PS MarkSweep
[2016-03-10 23:18:56,395] INFO - jetbrains.buildServer.STARTUP - Web server version: Apache Tomcat/7.0.59
[2016-03-10 23:18:56,395] INFO - jetbrains.buildServer.STARTUP - Server IP address: 3.20.100.154
[2016-03-10 23:18:56,397] INFO - jetbrains.buildServer.STARTUP - Web server ports: 8111 (protocol: org.apache.coyote.http11.Http11NioProtocol, scheme: http), 8105 (shutdown port)
[2016-03-10 23:18:56,400] INFO - jetbrains.buildServer.STARTUP - Version file lock was successfully obtained: /home/teamcity/TeamCity/webapps/ROOT/BUILD_37459
[2016-03-10 23:18:56,466] INFO - jetbrains.buildServer.STARTUP - Servlet real path: /home/teamcity/TeamCity/webapps/ROOT/
[2016-03-10 23:18:56,481] INFO - jetbrains.buildServer.STARTUP - Current stage: Looking for the TeamCity Data Directory
[2016-03-10 23:18:56,482] INFO - jetbrains.buildServer.STARTUP - The TeamCity Data Directory path is determined using the user home directory
[2016-03-10 23:18:56,486] INFO - jetbrains.buildServer.STARTUP - The TeamCity Data Directory "/root/.BuildServer" exists
[2016-03-10 23:18:56,487] INFO - jetbrains.buildServer.STARTUP - Asking user to select the TeamCity Data Directory path from UI
[2016-03-10 23:18:56,487] INFO - jetbrains.buildServer.STARTUP - Startup confirmation is required. Open TeamCity web page in the browser
[2016-03-10 23:18:56,487] INFO - jetbrains.buildServer.STARTUP - Current stage: Confirming TeamCity first start (administrator login is required to proceed)
[2016-03-10 23:22:49,134] INFO - jetbrains.buildServer.STARTUP - Server shutdown has been requested
[2016-03-10 23:22:49,135] INFO - jetbrains.buildServer.STARTUP - Current stage: TeamCity server is shutting down
[2016-03-10 23:22:49,135] INFO - jetbrains.buildServer.STARTUP - Stopping the main application
[2016-03-10 23:22:49,135] INFO - jetbrains.buildServer.STARTUP - The main servlet is not initialized, nothing to shut down.
[2016-03-10 23:22:49,135] INFO - jetbrains.buildServer.STARTUP - Version file lock was released: /home/teamcity/TeamCity/webapps/ROOT/BUILD_37459
[2016-03-10 23:22:49,135] INFO - jetbrains.buildServer.STARTUP - Server shutdown complete
[2016-03-10 23:24:57,288] INFO - jetbrains.buildServer.STARTUP - Path to the startup configuration file: /home/teamcity/TeamCity/bin/../conf/teamcity-startup.properties
[2016-03-10 23:24:57,335] INFO - jetbrains.buildServer.STARTUP -

========================================================================================

catalina.out - File Log 

 

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=270m; support was removed in 8.0
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.59
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jan 28 2015 15:51:10 UTC
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.59.0
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 3.10.0-327.10.1.el7.x86_64
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-2.b15.el7_2.x86_64/jre
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_71-b15
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /home/teamcity/TeamCity
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /home/teamcity/TeamCity
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/home/teamcity/TeamCity/conf/logging.properties
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms750m
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx750m
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:MaxPermSize=270m
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dteamcity.configuration.path=../conf/teamcity-startup.properties
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dlog4j.configuration=file:/home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dteamcity_logs=../logs/
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.awt.headless=true
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/home/teamcity/TeamCity/endorsed
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/home/teamcity/TeamCity
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/home/teamcity/TeamCity
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/home/teamcity/TeamCity/temp
Mar 10, 2016 11:18:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 10, 2016 11:18:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:18:50 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1229 ms
Mar 10, 2016 11:18:50 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 10, 2016 11:18:50 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.59
Mar 10, 2016 11:18:50 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/teamcity/TeamCity/webapps/ROOT
Using logs directory /home/teamcity/TeamCity/logs
Log4J configuration file /home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml will be monitored with interval 10 seconds.
Mar 10, 2016 11:18:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/teamcity/TeamCity/webapps/ROOT has finished in 5,379 ms
Mar 10, 2016 11:18:56 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:18:56 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5465 ms
TeamCity version: 9.1.6 (build 37459), data format version 727
OS: Linux, User: root, JRE: 1.8.0_71, OpenJDK 64-Bit Server VM (25.71-b15, mixed mode), OpenJDK Runtime Environment (1.8.0_71-b15), Oracle Corporation
JVM parameters: -Djava.util.logging.config.file=/home/teamcity/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms750m -Xmx750m -XX:MaxPermSize=270m -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true -Djava.endorsed.dirs=/home/teamcity/TeamCity/endorsed -Dcatalina.base=/home/teamcity/TeamCity -Dcatalina.home=/home/teamcity/TeamCity -Djava.io.tmpdir=/home/teamcity/TeamCity/temp
Startup confirmation is required. Open TeamCity web page in the browser
Mar 10, 2016 11:22:49 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Mar 10, 2016 11:22:49 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:22:49 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
log4j:WARN No appenders could be found for logger (jetbrains.buildServer.STARTUP).
log4j:WARN Please initialize the log4j system properly.
Mar 10, 2016 11:22:49 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Change Observer 1] but has failed to stop it. This is very likely to create a memory leak.
Mar 10, 2016 11:22:49 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak.
Mar 10, 2016 11:22:49 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Long Requests Watcher 1] but has failed to stop it. This is very likely to create a memory leak.
Mar 10, 2016 11:22:49 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [jetbrains.buildServer.util.ThreadStat$1] (value [jetbrains.buildServer.util.ThreadStat$1@3f74c02e]) and a value of type [jetbrains.buildServer.util.ThreadStatNoOp] (value [jetbrains.buildServer.util.ThreadStatNoOp@1d309325]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Mar 10, 2016 11:22:49 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@283d61a4]) and a value of type [jetbrains.buildServer.util.NamedThreadFactory$1] (value [jetbrains.buildServer.util.NamedThreadFactory$1@463cd762]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Mar 10, 2016 11:22:49 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:22:49 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-nio-8111"]
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=270m; support was removed in 8.0
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.59
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jan 28 2015 15:51:10 UTC
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.59.0
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 3.10.0-327.10.1.el7.x86_64
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-2.b15.el7_2.x86_64/jre
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_71-b15
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /home/teamcity/TeamCity
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /home/teamcity/TeamCity
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/home/teamcity/TeamCity/conf/logging.properties
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms750m
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx750m
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:MaxPermSize=270m
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dteamcity.configuration.path=../conf/teamcity-startup.properties
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dlog4j.configuration=file:/home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dteamcity_logs=../logs/
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.awt.headless=true
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/home/teamcity/TeamCity/endorsed
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/home/teamcity/TeamCity
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/home/teamcity/TeamCity
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/home/teamcity/TeamCity/temp
Mar 10, 2016 11:24:54 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 10, 2016 11:24:54 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:24:54 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 410 ms
Mar 10, 2016 11:24:54 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 10, 2016 11:24:54 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.59
Mar 10, 2016 11:24:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/teamcity/TeamCity/webapps/ROOT
Using logs directory /home/teamcity/TeamCity/logs
Log4J configuration file /home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml will be monitored with interval 10 seconds.
Mar 10, 2016 11:25:15 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/teamcity/TeamCity/webapps/ROOT has finished in 21,572 ms
Mar 10, 2016 11:25:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8111"]
Mar 10, 2016 11:25:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 21615 ms
TeamCity version: 9.1.6 (build 37459), data format version 727
OS: Linux, User: root, JRE: 1.8.0_71, OpenJDK 64-Bit Server VM (25.71-b15, mixed mode), OpenJDK Runtime Environment (1.8.0_71-b15), Oracle Corporation
JVM parameters: -Djava.util.logging.config.file=/home/teamcity/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms750m -Xmx750m -XX:MaxPermSize=270m -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/home/teamcity/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true -Djava.endorsed.dirs=/home/teamcity/TeamCity/endorsed -Dcatalina.base=/home/teamcity/TeamCity -Dcatalina.home=/home/teamcity/TeamCity -Djava.io.tmpdir=/home/teamcity/TeamCity/temp
Startup confirmation is required. Open TeamCity web page in the browser

 

 

 

========================================================================================

 

 

 

 

 

 



1 comment

Thanks. The problem is resolved, sorry the post. The firewall has to be disabled, the service message was not clear. 

Needed to do below commands:

261 tail -300f teamcity-server.log
262 service iptables status
263 systemctl disable firewalld
264 systemctl stop firewalld
265 systemctl status firewalld

Thanks for all your help.

 

 

 

0

Please sign in to leave a comment.