Uploaded image for project: 'HipChat'
  1. HipChat
  2. HCPUB-2779

scissortail monit alerts sent after upgrade from 1.1.x to 2.x

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • HCS 2.2.0
    • None
    • Severity 3 - Minor

    Description

      Summary

      monit will send false scissortail alerts after upgrade from 1.1x to 2.x

      Steps to Reproduce

      1. Upgrade HipChat Server from 1.1.8 to 2.2.0
      2. Run monit status

      Expected Results

      All processes should be reported as running

      Actual Results

      The two errors will be t
      /etc/monit.d/scissortail.monitrc:2: Program does not exist: '/hipchat/scissortail/current/wrapper.sh'
      /etc/monit.d/scissortail.monitrc:3: Program does not exist: '/hipchat/scissortail/current/wrapper.sh'
      

      The two processes scissortail-rqworker and scissortail-gunicorn will be reported as failed:

      Process 'scissortail-rqworker'
        status                            Execution failed
        monitoring status                 Monitored
        data collected                    Thu, 02 Mar 2017 11:15:59
      
      Process 'scissortail-gunicorn'
        status                            Execution failed
        monitoring status                 Monitored
        data collected                    Thu, 02 Mar 2017 11:16:29
      

      Workaround

      The root cause being the presence of a stale /etc/monit.d/scissortail.monitrc in the server, the workaround would be:

      1. Move the file out of the way:
        sudo dont-blame-hipchat
        mv -v /etc/monit.d/scissortail.monitrc /home/admin/scissortail.monitrc.bak # Pick any other location if needed
        
      2. Restart monit:
        service monit restart
        
      3. Validate the errors are gone:
        monit status
        

      Attachments

        Activity

          People

            Unassigned Unassigned
            adridi Arbi Dridi
            Archiver:
            mandreacchio Michael Andreacchio

            Dates

              Created:
              Updated:
              Resolved:
              Archived: