Alerts Email Failed To Be Updated

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 version of Hipchat Server is no longer supported

This article applies to a version of Hipchat Server which is beyond the Atlassian End of Life policy, and is no longer supported.

When was my version deprecated?

The following versions have been deprecated:

  • Hipchat Server 1.3 (EOL Date: Aug 17, 2017)

The following versions will be deprecated soon:

  • Hipchat Server 2.0 (EOL Date: Jun 17, 2018)
  • Hipchat Server 2.1 (EOL Date: Dec 8, 2018)
  • 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. If possible, you should also consider deploying Hipchat Data Center instead.

問題

Admin tries to update alerts email via the following command but the modification is not taking effect or if it does take effect, it is not retained every time the server is rebooted:

hipchat email --alerts-email=new_email@example.com

原因

There is an existing alerts email set in vApp settings in the VMware vCenter environment that will always restore this specific email for each server reboot. 

ソリューション #1

When you run the following command, the specified email address will be updated in /etc/monit/monitrc and /etc/chef/solo.json

hipchat email --alerts-email=new_email@example.com

If not, admin can work around this manually by editing these files (root access needed) and update it with the required email address as follows: 

  1. Switch to root

    sudo dont-blame-hipchat
  2. Update the email address in /etc/monit/monitrc, please change the addresses accordingly

    sed -i 's/old_email@example.com/new_email@example.com/g' /etc/monit/monitrc
  3. Update the email address in /etc/chef/solo.json

    sed -i 's/old_email@example.com/new_email@example.com/g' /etc/chef/solo.json
  4. Validate the change

    hipchat email --show

ソリューション #2

If that still didn't help and the old alerts email kept being restored, consider the next steps to tackle this issue:

  1. SSH into the server and run this command:

    grep 'old_email@example.com' /etc/*.sh
  2. Check the returned result. If the results have an output like the following, it means the alerts email has been set in vApp settings in the VMware vCenter environment e.g.:

    /etc/ovfenv.sh:hc_emailContact="old_email@example.com"
  3. The above indicates that the alerts email address has been set in /etc/ovfenv.sh which points to the configuration in vCenter

  4. The only way to properly update the alerts email without it restoring old alert email is to completely remove it from the vApp settings in the VMware vCenter environment.

 

最終更新日: 2017 年 10 月 16 日

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

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