Re-index after 8.5.1 upgrade fails

Felipe Peiro November 27, 2019

After performing an upgrade to JIRA 8.5.1 the re-index fails and the following appears in the atlassian-jira.log

 

com.google.template.soy.tofu.SoyTofuException: When evaluating "'IndexReIndex!reindex.jspa?atl_token=' + $atlToken + '&indexingStrategy=' + $indexingStrategy": Attempted to coerce undefined value into a string.

Following workaround done (even with disabled add-ons) but still not working

  1. Shutdown JIRA
  2. Delete all the contents from the following folder:

    $JIRA_HOME\caches\indexes

  3. Restart JIRA
  4. Perform a full re-index

 

Any idea for resolving it?

 

2 answers

1 accepted

0 votes
Answer accepted
Maxime_Tremblay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2020

Found the issue.

The issue is there because something is messing with the JavaScript code. In my case, we were inserting a JavaScript code in the banner announcement and an error was triggered when the Index page was accessed.

When it happens, futher JavaScript code is not loaded correctly, which prevent the reindex button to gather the altToken and the indexStrategy value (because these values are modified dynamicaly according to the user choice).

0 votes
Pablo Barroso Cubillas February 5, 2020

Just in case, I found my workaround for this problem. Please look at my comment:

https://community.atlassian.com/t5/Jira-questions/Jira-8-5-0-full-foreground-re-index-fails/qaq-p/1221041

Suggest an answer

Log in or Sign up to answer