SoyTofuException encountered attempting to reindex after upgrading to Jira 8.5
プラットフォームについて: 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 は除く
要約
A SoyTofuException is encountered when attempting to re-index after upgrading to Jira 8.5 and later from an earlier version.
環境
Jira 8.5 以降
診断
When attempting to complete a Background re-index or a Full re-index, you encounter a SoyTofuException similar to the example below.
Technical details
Log's referral number: #-#-#-#
Cause
Referer URL: https://jira.baseurl.com/secure/admin/IndexAdmin.jspa
com.google.template.soy.tofu.SoyTofuException: When evaluating "'IndexReIndex!reindex.jspa?atl_token=' + $atlToken + '&indexingStrategy=' + $indexingStrategy": Attempted to coerce undefined value into a string.
com.google.template.soy.tofu.SoyTofuException: When evaluating "'IndexReIndex!reindex.jspa?atl_token=' + $atlToken + '&indexingStrategy=' + $indexingStrategy": Attempted to coerce undefined value into a string.
at JIRA.Templates.Admin.Index.buttonContainer(confirm-reindex.soy:65) [?:?]
at JIRA.Templates.Admin.Index.confirmReindex(Unknown Source) [?:?]
at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:369) [?:?]
at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:322) [?:?]
at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:66) [?:?]
at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:476) [?:?]
at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:154) [?:?]
原因
原因 1
Custom Javascript introduced via the announcement banner can result in this type of failure.
原因 2
Running third-party apps that have not been updated to a version that is compatible with the version of Jira that is installed can result in this type of failure.
ソリューション
ソリューション 1
- Choose Administration ( ) >System.
- 下のシステムパネルで、ユーザーインターフェイス > 通知バナーを選択します。
- Save the current text from the Announcement field to a text file.
- Temporarily remove all text from the Announcement field.
- Test to see if you can reproduce the re-index failure.
ソリューション 2
- Visit Administration ( ) > Manage Apps and choose Manage Apps under ATLASSIAN MARKETPLACE.
- Update all third-party apps to a version that is compatible with the version of Jira you have installed.
Still having a re-index failure?
DEBUG logs will help to better understand the nature of the re-index failure during the next attempt.
Please enable Indexing DEBUG logs using the:
- Navigate to Administration ( ) System > Logging and profiling
- Scroll down to the "Configure logging level for another package." line and click "Configure"
- Add these packages at the DEBUG level:
- com.atlassian.jira.index
- com.atlassian.jira.issue.index
Note: The DEBUG logs can be disabled after the data has been collected.
- Collect a support zip.
- Open a case with Atlassian Support.