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