We have the following crontab expression executing on our Jira instance every Friday night:
00 03 * * 5 bash /root/rebuild_jira_index.sh >>/root/rebuild_jira_index.log 2>&1
The /root/rebuild_jira_index.sh script performs the following steps:
- stop the Jira application service;
- delete the Jira index files;
- start the Jira application service;
- sleep until Jira is in status=RUNNING;
- issue a full re-index request via the Jira REST API.
It appears that the re-index command is not succeeding.