JIRA crashed today, complaining that the segments file in the indexes\issues directory of the repository was missing. I tried to rebuild the indexes, but then it complained that it couldn't delete the index files. The solution was to restart JIRA and then rebuild the indexes.
Perhaps another process was locking the JIRA files -- a backup or virus scan?