Upgrade to Hipchat Server 2.4.x fails; system is unusable with "Something went wrong try again later" in the UI

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

問題

An upgrade to 2.4.x fails and renders the system unusable. Accessing the website shows the error below:

The following appears at the end of /var/log/chef.log:

[2018-06-04T10:58:41+00:00] ERROR: bash[update_mysql_password] (mariadb::server line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20180604-21537-1db22zk" ----
STDOUT: [mariadb_grants] Validating password specified is indeed set
STDERR: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
---- End output of "bash"  "/tmp/chef-script20180604-21537-1db22zk" ----
Ran "bash"  "/tmp/chef-script20180604-21537-1db22zk" returned 1
[2018-06-04T10:58:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2018-06-04T10:58:41+00:00] INFO: Allow custom /etc files
[2018-06-04T10:58:42+00:00] INFO: Re-enabling monitoring
[2018-06-04T10:58:42+00:00] ERROR: Error: Configuration failure

診断

We've only seen this issue happening when upgrading to version 2.4.x:

HCPUB-18321 - Getting issue details... STATUS

原因

We have not be able to reproduce the issue so we still don't know what the root cause is. 

回避策

  1. Log into the Hipchat Server terminal/command-line interface
  2. Run the following commands to reset the database passwords, then restart all services:

    wget https://s3.amazonaws.com/hipchat-server-stable/utils/_mariadb_change_password.sh
    sudo dont-blame-hipchat
    chmod +x _mariadb_change_password.sh
    /bin/bash _mariadb_change_password.sh
    hipchat upgrade --restart
    exit

    The commands above downloads a script, gains root access to the system, sets the script to be executable, runs the script to reset the database password, resets the Hipchat Server services, then relinquishes root access.

In case problem persists, please contact Hipchat Server support for assistance.  



最終更新日 2018 年 11 月 2 日

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

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