请选择 进入手机版 | 继续访问电脑版

热点推荐

    查看: 687|回复: 2

    Jenkins发版异常[tomcat-service.sh] root PID(30774): Tomcat did not stop in time

    [复制链接]
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 361 天

    [LV.8]以坛为家I

    5万

    主题

    5万

    帖子

    16万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    160071
    发表于 2019-10-10 00:20:01 | 显示全部楼层 |阅读模式
    在用Jenkins发版时发生了异常导致其中两台服务器正常启动,最后一台无法正常启动( a+ R  I9 f2 j
    fatal: []: FAILED! => {"changed": true, "cmd": "{\n sh /server/tomcat/production/bin/service.sh stop\n }", "delta": "0:00:33.858439", "end": "2019-10-09 19:07:09.960533", "msg": "non-zero return code", "rc": 1, "start": "2019-10-09 19:06:36.102094", "stderr": "", "stderr_lines": [], "stdout": "2019-10-09 19:06:36 [tomcat-service.sh] root PID(30774): Stoping tomcat 392 6392...\n2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): Tomcat did not stop in time. To aid diagnostics a thread dump has been written to standard out. Killing Tomcat with the PID: 392 The Tomcat process has been killed.\n2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.\n2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:54 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:55 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:56 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:57 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:58 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:06:59 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:00 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:01 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:02 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:03 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:04 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:05 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:06 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:07 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:08 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed\n2019-10-09 19:07:09 [tomcat-service.sh] root PID(30774): process is still running, error!", "stdout_lines": ["2019-10-09 19:06:36 [tomcat-service.sh] root PID(30774): Stoping tomcat 392 6392...", "2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): Tomcat did not stop in time. To aid diagnostics a thread dump has been written to standard out. Killing Tomcat with the PID: 392 The Tomcat process has been killed.", "2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.", "2019-10-09 19:06:53 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:54 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:55 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:56 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:57 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:58 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:06:59 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:00 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:01 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:02 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:03 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:04 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:05 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:06 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:07 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:08 [tomcat-service.sh] root PID(30774): \twaiting for processes 6392 to be killed", "2019-10-09 19:07:09 [tomcat-service.sh] root PID(30774): process is still running, error!"]}' E, N- z2 [8 w/ x5 M
    / N  _. B* P% K+ ~) Y4 l8 W% s& X2 v' f5 V
    之后又翻了下tomcat日志发现其实是一个进程一直无法关闭导致的发版失败,重新发版就好了: t2 L, ?, ?" t- j
    9EC08C22-95BC-4fea-9570-F3E8FAFB761E.png 7 g! G8 Q# f: R5 O6 Y

    4 p( ?  l% ]' _# R0 E% P) A0 }! l
    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    108

    帖子

    216

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    216
    发表于 2020-3-14 06:35:27 | 显示全部楼层
    一直在看
    回复

    使用道具 举报

    该用户从未签到

    9

    主题

    137

    帖子

    283

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    283
    发表于 2020-7-11 08:53:42 | 显示全部楼层
    Java吧 给力的java论坛
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    快速回复 返回顶部 返回列表