Fixed the permissions error when whoosh try to search in the/search/unified index. This was due to the missing x permission on the folder for www-data. The owners are reset to gnoel:ddh-research each time dpsearch index is run. And repo.py run as a cron job does not have the sufficient permissions to change the owners. Solution= repo.py set o+x on search/unified.