EC2上的Teamcity“无法确定本地IP地址(...):未知错误”

时间:2015-06-01 21:22:08

标签: amazon-ec2 teamcity teamcity-9.0

我正在尝试在Teamcity个实例上设置EC2 Ubuntu

我已经:

  1. 通过wget http://download.jetbrains.com/teamcity/TeamCity-9.0.4.tar.gz下载了包。打开包装。

  2. 解压缩它:tar -xvzf TeamCity-9.0.4.tar.gz

  3. sh Teamcity/bin/teamcity-server.sh start

  4. 我无法访问网络应用,当我查看日志时说:

    INFO -  jetbrains.buildServer.STARTUP - Server shutdown has been requested 
    WARN -  jetbrains.buildServer.STARTUP - Could not determine the local IP address: ip-172-30-1-83: ip-172-30-1-83: unknown error
    INFO -  jetbrains.buildServer.STARTUP - Server IP address: -unknown-
    INFO -  jetbrains.buildServer.STARTUP - Server shutdown complete
    

    完整日志:

    INFO -  jetbrains.buildServer.STARTUP - Starting TeamCity server
    INFO -  jetbrains.buildServer.STARTUP - Server shutdown has been requested
    INFO -  jetbrains.buildServer.STARTUP - TeamCity version: 9.0.4 (build 32407), data format version 709
    INFO -  jetbrains.buildServer.STARTUP - OS: Linux, User: ubuntu, JRE: 1.8.0_45-b14 Java HotSpot(TM) 64-Bit Server VM
    INFO -  jetbrains.buildServer.STARTUP - JVM parameters: -Djava.util.logging.config.file=/home/ubuntu/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx512m -XX:MaxPermSize=270m -Dlog4j.configuration=file:/home/ubuntu/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djsse.enableSNIExtension=false -Djava.awt.headless=true -Djava.endorsed.dirs=/home/ubuntu/TeamCity/endorsed -Dcatalina.base=/home/ubuntu/TeamCity -Dcatalina.home=/home/ubuntu/TeamCity -Djava.io.tmpdir=/home/ubuntu/TeamCity/temp
    INFO -  jetbrains.buildServer.STARTUP - Garbage collection: Copy, MarkSweepCompact
    WARN -  jetbrains.buildServer.STARTUP - Could not determine the local IP address: ip-172-30-1-83: ip-172-30-1-83: unknown error
    INFO -  jetbrains.buildServer.STARTUP - Web server version: Apache Tomcat/7.0.59
    INFO -  jetbrains.buildServer.STARTUP - Server IP address: -unknown-
    INFO -  jetbrains.buildServer.STARTUP - Servlet real path: /home/ubuntu/TeamCity/webapps/ROOT/
    INFO -  jetbrains.buildServer.STARTUP - Current stage: TeamCity server is shutting down
    INFO -  jetbrains.buildServer.STARTUP - Stopping the main application
    INFO -  jetbrains.buildServer.STARTUP - The main servlet is not initialized, nothing to shut down.
    INFO -  jetbrains.buildServer.STARTUP - Server shutdown complete
    

    有关如何解决问题的任何提示?

    我有Teamcity的网络应用程序在我的本地计算机上工作(也是Ubuntu,以及相同的Teamcity包)。

1 个答案:

答案 0 :(得分:1)

读取shell脚本TeamCity/bin/teamcity-server.sh,它写有限制,脚本无法用完应用程序文件夹。

  export CATALINA_OPTS
  CATALINA_HOME=./..
  CATALINA_BASE=./..

所以你应该cd到bin文件夹并运行:

cd Teamcity/bin
sh teamcity-server.sh start

如果它能解决你的问题,请告诉我。