Upgrading to Crowd 4.2 or later throws missing keysjavax.crypto.spec.SecretKeySpec_* error

お困りですか?

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

コミュニティに質問

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

 

問題

When attempting to upgrade to Crowd 4.2 it fails and the following appears in the atlassian-crowd.log:

Cause:
java.lang.RuntimeException: java.io.FileNotFoundException: /var/atlassian/application-data/crowd/shared/keys/javax.crypto.spec.SecretKeySpec_1620133793202 (No such file or directory)

環境

Crowd 4.2 and above

診断

The error indicates that the SecretKeySpec file does not exist.

原因

Starting from Crowd 4.2, all passwords for external systems stored in Crowd are encrypted by default.  

(warning) It is crucial to make sure you backup your encryption keys. Without them you won't be able to properly restore Crowd from backup.

ソリューション

The encryption keys are stored in the shared folder {crowdHome}/shared/keys. To backup the keys, copy the {crowdHome}/shared/keys directory to the secure place.

To correctly restore from backup with encrypted passwords, corresponding keys must be present in the {crowdHome}/shared/keys, otherwise, Crowd won't be able to decrypt passwords.

For more information, see Password encryption

最終更新日 2021 年 8 月 27 日

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

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