monit scissortail alerts are received after upgrade from 1.1.x to 2.x

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

This is for an outdated version of Hipchat Server

 This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.

When will my version be deprecated?

The following versions have been deprecated:

  • Hipchat Server 1.3 (EOL Date: Aug 17, 2017)
  • Hipchat Server 2.0 (EOL Date: Jun 17, 2018)
  • Hipchat Server 2.1 (EOL Date: Dec 8, 2018)

The following version will be deprecated soon:

  • Hipchat Server 2.2 (EOL Date: May 30, 2019)

You can read more about Atlassian's End of Life policy here.

You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.

問題

After a successful upgrade from 1.1.x to 2.x, Hipchat Server is sending monitoring alerts similar to the following: 

Here are the details,
Action: alert
Desc: failed to start (exit status -1) – Program /hipchat/scissortail/current/wrapper.sh failed: File '/hipchat/scissortail/current/wrapper.sh' does not exist
Event: Execution failed
Service: scissortail-rqworker
Host: hipchat.example.com
Date: Thu, 02 Mar 2017 13:38:52

Here are the details,
Action: alert
Desc: failed to start (exit status 0) – /etc/init.d/scissortail: Traceback (most recent call last):
File "/hipchat-scm/scissortail/vendor/virtualenv/lib/python3.5/site-packages/gunicorn/app/base.py", line 92, in get_config_from_filename
execfile_(filename, cfg, cfg)
File "/hipchat-scm/s
Event: Execution failed
Service: scissortail-gunicorn
Host: hipchat.example.com
Date: Thu, 02 Mar 2017 13:39:23

Looking at /var/log/hipchat/runtime.log or its rotated version /var/log/hipchat/runtime.log.1.gz, you will see

/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'

診断

Validate the symptoms by checking the presence of /etc/monit.d/scissortail.monitrc.

原因

The upgrade doesn't properly cleanup /etc/monit.d/scissortail.monitrc. This config file tells monit to monitor for a process that no longer exists in Hipchat Server. 

When monit doesn't find this process running, it will try to restart it and will fail. 

回避策

  1. Move the monit config 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. Verify monit doesn't return any process as failed:

    monit status

ソリューション

The issue is logged as a bug in our public issue tracker:  HCPUB-2779 - Getting issue details... STATUS

 

最終更新日: 2018 年 1 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.