Loading...
 
Skip to main content

Lucene search index rebuild fails on windows 2008 server

Status
Open
Subject
Lucene search index rebuild fails on windows 2008 server
Version
12.x
12.x Regression
Category
  • Regression
  • Usability
Feature
Search
Resolution status
New
Submitted by
mikko.koivusaari
Lastmod by
mikko.koivusaari
Rating
(0)
Description

Search index rebuild fails. I've tracked it down to the file and it fails at php:s function rename. Where the code tries to rename the index-new folders content to the current index. This used to work in version 11. Possible issue with file-permission systems, php is not allowed to access the folders. The file in question is searchlib-unified.php and rows close to 250. rename($index_location, $swapName)) this fails.
I'm not sure if this is a problem on Linux servers.

Settings:
Windows server 2008 R2 Standard
MySQL server 5.6
PHP 5.4.19

Workarounds:
1: Comment out the rename and delete lines from code.
2:
Build a batch file to do your file transfer.
OR
Move the files manually if you don't have to build indexes very often
OR
build indexes with previous versions and move the files
OR
Fix the code by making a recursive loop that moves the files from the folder to another folder.

Importance
4
Easy to solve?
5
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5492
Created
Friday 24 October, 2014 08:37:57 UTC
by mikko.koivusaari
LastModif
Friday 24 October, 2014 08:37:57 UTC


Show PHP error messages