[opencms-dev] unable to unlock index

Giedrius Tumelis giedriustum at gmail.com
Thu Sep 27 10:47:25 CEST 2012


Not sure, but if the two servers share the same database server, and
this is not planed by the opencms developers, then it should not work
correctly. Let experts tell a word :)

2012/9/27 Raffaele Guido <r.guido at synclab.it>:
> Hi,
> i'm trying to rebuild index programmatically.
> Every time someone publish a resourse that have to be indexed, on the first
> server node, i do reindex on the other server too.
>
> At the first time i create a resource it's ok, both servers index it.
> But the second not. What is the problem?
>
> thanks
>
>
> 2012/9/18 Giedrius Tumelis <giedriustum at gmail.com>
>>
>> In that case I usualy delete the index files, located at:
>> WEB-INF/index/<your index name> ( must be done when opencms is down );
>> then start up the opencms and rebuild index through opencms
>> administrative view/search management -> rebuid selected indexes.
>>
>> 2012/9/18 Víctor Martín <venosov at gmail.com>:
>> > Hi, the "OpenCms Module Developer" plugin for eclipse is the process
>> > that
>> > locks my file. I hope this help you.
>> >
>> >
>> >
>> >
>> > 2012/9/17 Raffaele Guido <r.guido at synclab.it>
>> >>
>> >> Hi,
>> >> yes i know but every time a user creates a content someone has to
>> >> delete
>> >> this file.
>> >>
>> >> I'm looking for a definitive solution
>> >>
>> >> thanks
>> >>
>> >>
>> >> 2012/9/17 Víctor Martín <venosov at gmail.com>
>> >>>
>> >>> Hi, I had a similar problem
>> >>>
>> >>> INFO [rg.opencms.report.CmsLogReport: 113] !!! Unable to obtain lock
>> >>> for
>> >>> index "Gallery Index". Giving up. !!!
>> >>>
>> >>> the solution was to remove the file
>> >>>
>> >>> C:\Archivos de
>> >>> programa\apache-tomcat-7.0.14\webapps\opencms\WEB-INF\index\Gallery
>> >>> Index\write.lock
>> >>>
>> >>>
>> >>>
>> >>> 2012/9/17 Raffaele Guido <r.guido at synclab.it>
>> >>>>
>> >>>> Hi all,
>> >>>> i have a question about opencms cluster + lucene indexer.
>> >>>>
>> >>>> I have two machine in cluster with opencms and an index news
>> >>>> configuration.
>> >>>> This is my scenario:
>> >>>>
>> >>>> User A on the Machine A
>> >>>> User B on the Machine B
>> >>>>
>> >>>> User A creates a content news and rebuild index idx_notizia, so he
>> >>>> can
>> >>>> see the new content correctly
>> >>>> At the same time User B, connected to his machine, doesn't see this
>> >>>> change and the error in the log says:
>> >>>>
>> >>>> org.opencms.search.CmsIndexException: Unable to obtain lock for index
>> >>>> "idx_notizia". Giving up.
>> >>>>
>> >>>> So he has to force the index rebuild to see new content.
>> >>>> How can i solve the problem?
>> >>>>
>> >>>>
>> >>>> Thanks
>> >>>> --
>> >>>> Raffaele
>> >>>>
>> >>>> _______________________________________________
>> >>>> This mail is sent to you from the opencms-dev mailing list
>> >>>> To change your list options, or to unsubscribe from the list, please
>> >>>> visit
>> >>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> This mail is sent to you from the opencms-dev mailing list
>> >>> To change your list options, or to unsubscribe from the list, please
>> >>> visit
>> >>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Raffaele Guido
>> >>
>> >> _______________________________________________
>> >> This mail is sent to you from the opencms-dev mailing list
>> >> To change your list options, or to unsubscribe from the list, please
>> >> visit
>> >> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > _______________________________________________
>> > This mail is sent to you from the opencms-dev mailing list
>> > To change your list options, or to unsubscribe from the list, please
>> > visit
>> > http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >
>> >
>> >
>> >
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
>
>
> --
> Raffaele Guido
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>



More information about the opencms-dev mailing list