Cannot apply Atlassian Data Center Stack License to a Hipchat Server

お困りですか?

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

コミュニティに質問

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

As of July 1st, 2019, the Atlassian Data Center Stack License is no longer offered by Atlassian. This knowledge base article relates to Atlassian Data Center Stack Licenses purchased prior to this date.


問題

Trying to apply an Atlassian Data Center Stack License via Web UI or command line to a system running Hipchat Server fails.  The same license works fine when applied to a Hipchat Data Center node. 

The following error is presented to the user:

hipchat license -i license.txt
Error: The license does not support HipChat Server


診断

環境

  • Hipchat Server 2.2.5 and older.
  • Hipchat Data Center is not affected by this. 

原因

HCPUB-3467 - Getting issue details... STATUS

  • The _license.py code in Hipchat Server that checks the license description is missing the parenthesis around Data Center . This typo is causing the license check to fall through and not accept the license. 
  • The diff below shows the line of incorrect code compared to the line of correct code:



--- _license.py	2017-09-14 23:02:30.482804951 +0000
+++ _license.py.new	2017-09-14 23:02:43.174367237 +0000
@@ -93,7 +93,7 @@
                 pass

     # Termed Beta License; HipChat (Server) Plus 250 Users: Commercial License
-    if any(word in description for word in ['HipChat', 'Termed Beta License', 'Atlassian Stack Data Center']):
+    if any(word in description for word in ['HipChat', 'Termed Beta License', 'Atlassian Stack (Data Center)']):
         try:
             expires_time = time.strptime(expires, '%Y-%m-%d')
             end_of_march_2015 = 1427846399


ソリューション

  • This has been fixed in Hipchat Server 2.2.6 and higher.  Upgrading to the latest server release is recommended.  
  • If, however, the server cannot be upgraded right away, please see the workaround steps below. 

回避策

  • Please download the attached file:  _license.py
  • Copy this file to /home/admin on the Hipchat Server.
  • Take a snapshot of your Virtual Machine instance so you can quickly roll back to a last-known-good state in the unlikely event something goes wrong.
  • Log in to the Hipchat Server command line console and gain root access:

    sudo dont-blame-hipchat
  • As the root user, make a backup copy of the _license.py file:


    cp /opt/atlassian/hipchat/sbin/_license.py /home/admin/_license.py.orig
  • Still as root, copy the _license.py provided by support to the following directory on the server:


    cp /home/admin/_license.py /opt/atlassian/hipchat/sbin/
  • Reapply the stack license.  It should work without an error. 

  • Verify the license is in place using either the Web UI or this command:

    hipchat license --show

最終更新日 2019 年 6 月 30 日

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

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