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

热点推荐

查看: 300|回复: 2

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

[复制链接]
  • TA的每日心情
    开心
    昨天 09:39
  • 签到天数: 262 天

    [LV.8]以坛为家I

    2万

    主题

    2万

    帖子

    8万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    88051
    发表于 2019-10-10 00:20:01 | 显示全部楼层 |阅读模式
    在用Jenkins发版时发生了异常导致其中两台服务器正常启动,最后一台无法正常启动
    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!"]}

    之后又翻了下tomcat日志发现其实是一个进程一直无法关闭导致的发版失败,重新发版就好了
    9EC08C22-95BC-4fea-9570-F3E8FAFB761E.png

    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    43

    帖子

    86

    积分

    注册会员

    Rank: 2

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

    使用道具 举报

    该用户从未签到

    9

    主题

    44

    帖子

    97

    积分

    注册会员

    Rank: 2

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

    使用道具 举报

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

    本版积分规则

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