Hipchat Server upgrade fails with cannot execute binary file

お困りですか?

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

コミュニティに質問

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

 

問題

When upgrading Hipchat Server, the upgrade fails to complete with the following error in the /var/log/hipchat/update.log file:

The following appears in the /var/log/hipchat/update.log

STDOUT: Setting up ca-certificates-java (20130815ubuntu1) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....E: /etc/ca-certificates/update.d/jks-keystore exited with code 2.
done.
STDERR: /var/lib/dpkg/info/ca-certificates-java.postinst: line 12: .: /etc/default/cacerts: cannot execute binary file
dpkg: error processing package ca-certificates-java (--configure):
 subprocess installed post-installation script returned error exit status 126
/etc/ca-certificates/update.d/jks-keystore: 4: /etc/default/cacerts: Syntax error: Unterminated quoted string
Errors were encountered while processing:
 ca-certificates-java

診断

環境

  • Upgrading to Hipchat Server 2.0 build 2.0.4

原因

While upgrading packages, the /etc/default/cacerts file is identified as binary, rather than ASCII/text, causing the package update to fail.

回避策

  1. Log into the Hipchat Server terminal/command-line interface
  2. 次のコマンドを実行します。

    sudo dont-blame-hipchat
    mv /etc/default/cacerts /home/admin/cacerts.bak
    /var/lib/dpkg/info/ca-certificates-java.postinst configure
    dpkg --configure -a
    hipchat upgrade --offline

    (info) If upgrading from build 1.3.x to build 2.x, you will need to reboot the Hipchat Server virtual machine in order to complete a successful upgrade. Please be sure to backup/snapshot the system before rebooting, just in case.

If the upgrade is still failing, please contact Hipchat Server support for further assistance.

 

最終更新日 2018 年 11 月 2 日

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

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