6.1 failing to create search index

Post your Server Bug Report
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

6.1 failing to create search index

Unread post by garyo »

Code: Select all

=========================================================================================
 VERSION:      MADSONIC 6.1 | BUILD: 8120, STANDALONE
 SERVLET:      DEFAULT
 SERVER:       CPU: ICORE7 | ARCH: X64 | MEMORY: 16GB | HDD: 10TB
 OS:           FREEBSD
 SYSTEM:       NAS (FREENAS JAIL)
 INSTALLER:    STANDALONE
 JAVA:         OPEN JDK 1.8
 BROWSER:      CHROME 48
 CLIENT:       MADSONIC 6.1
 DESCRIPTION:  FAILED TO CREATE SEARCH INDEX
 REPRODUCIBLE: YES
=========================================================================================
Since updating from 6.0.7960 to 6.1.8120 this morning, media scans fill the log with this, for every song:

Code: Select all

[2016-03-05 07:50:11,042] ERROR SearchService - Failed to create search index for Dancing With The Moonlight Knight
java.lang.NullPointerException
        at org.madsonic.service.SearchService.index(SearchService.java:146)
        at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:436)
        at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:479)
        at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:482)
        at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:482)
        at org.madsonic.service.MediaScannerService.doFullScanLibrary(MediaScannerService.java:350)
        at org.madsonic.service.MediaScannerService.access$200(MediaScannerService.java:51)
        at org.madsonic.service.MediaScannerService$4.run(MediaScannerService.java:196)
and finally:

Code: Select all

[2016-03-05 07:50:11,094] ERROR SearchService - Failed to create search index.
java.lang.NullPointerException
        at org.madsonic.service.SearchService.stopIndexing(SearchService.java:177)
        at org.madsonic.service.MediaScannerService.doFullScanLibrary(MediaScannerService.java:402)
        at org.madsonic.service.MediaScannerService.access$200(MediaScannerService.java:51)
        at org.madsonic.service.MediaScannerService$4.run(MediaScannerService.java:196)
Random album view no longer works. Playing still is fine, as are most of the screens (recent additions, view by artist, etc.)

Here's the stack trace for failing to search for random albums:

Code: Select all

[2016-03-05 07:54:57,519] ERROR SearchService - Failed to search for random albums.
org.apache.lucene.index.CorruptIndexException: Unknown format version: -11
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:249)
        at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:77)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:677)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:73)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:202)
        at org.madsonic.service.SearchService.createIndexReader(SearchService.java:865)
        at org.madsonic.service.SearchService.getRandomAlbums(SearchService.java:715)
        at org.madsonic.controller.HomeController.getRandom(HomeController.java:470)
        at org.madsonic.controller.HomeController.handleRequestInternal(HomeController.java:189)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:933)
...and lots more...
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: 6.1 failing to create search index

Unread post by Madsonic »

Hi there,

Thank you for reporting this issue. This is fixed with the upcoming version.

Workaround

Please stop the server and delete the folder from this path /var/madsonic/lucence3,
restart your server and trigger a full rescan of your media library, after finishing the scan your index will be accessible.

Best regards
These users thanked the author Madsonic for the post:
jake-
Rating: 7.69%
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

[SOLVED] Re: 6.1 failing to create search index

Unread post by garyo »

That works, thanks!
These users thanked the author garyo for the post:
Madsonic
Rating: 7.69%
VikingOy
Posts: 41
Joined: 03 May 2015, 20:26
Has thanked: 3 times
Been thanked: 7 times

Re: 6.1 failing to create search index

Unread post by VikingOy »

Madevil wrote: Please stop the server and delete the folder from this path /var/madsonic/lucence3,
restart your server and trigger a full rescan of your media library, after finishing the scan your index will be accessible.
I have the same problem, but just to make sure; Is it the Album folder that should be removed from lucene3?
(ubuntu 14.4 server. I'm running 6.0.7860)
Post Reply