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.
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:
Switch to root
sudo dont-blame-hipchat
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
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
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:
SSH into the server and run this command:
grep 'old_email@example.com' /etc/*.sh
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"
The above indicates that the alerts email address has been set in /etc/ovfenv.sh which points to the configuration in vCenter
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.