Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17439

Artifactory restarts on upgrades fail due to "Tomcat did not stop in time."

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.3.0
    • Fix Version/s: None
    • Component/s: RPM, Tomcat
    • Environment:

      RHEL 7.5

      Description

      Possibly a duplicate of RTFACT-5696: Whenever I upgrade Artifactory Pro (on RHEL 7.5), Artifactory fails to properly stop, and therefore does not come up again automatically after upgrade like it should. The fix is probably this: set a longer timeout for the Tomcat shutdown command in /opt/jfrog/artifactory/bin/artifactoryManage.sh: https://www.solidsyntax.be/2013/10/21/getting-rid-of-tomcat-did-not-stop-in-time-messages/

      Actually, looking at this again, I see that you have some timeout and kill logic in there, so I'm not sure now. But this needs to be fixed somehow.

       From journalctl:

      Aug 31 00:51:43 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: Max number of open files: 1024
      Aug 31 00:51:43 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: Using ARTIFACTORY_HOME: /var/opt/jfrog/artifactory
      Aug 31 00:51:43 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: Using ARTIFACTORY_PID: /var/opt/jfrog/run/artifactory.pid
      Aug 31 00:51:50 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: Tomcat did not stop in time.
      Aug 31 00:51:50 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: PID file was not removed.
      Aug 31 00:51:50 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: To aid diagnostics a thread dump has been written to standard out.
      Aug 31 00:51:50 artifactory-coe.cmms-rb.local su[1776]: pam_unix(su:session): session closed for user artifactory
      Aug 31 00:51:52 artifactory-coe.cmms-rb.local artifactoryManage.sh[1762]: Artifactory Tomcat stopped
      Aug 31 00:51:52 artifactory-coe.cmms-rb.local systemd[1]: artifactory.service: main process exited, code=exited, status=143/n/a
      Aug 31 00:51:52 artifactory-coe.cmms-rb.local systemd[1]: Stopped Setup Systemd script for Artifactory in Tomcat Servlet Engine.
      Aug 31 00:51:52 artifactory-coe.cmms-rb.local systemd[1]: Unit artifactory.service entered failed state.
      Aug 31 00:51:52 artifactory-coe.cmms-rb.local systemd[1]: artifactory.service failed.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kenyon Kenyon Ralph
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: