We are talking about compass indexes.
But, is your mail linked to the one titled "JCR Index corruption" ? If so, you also have deleted JCR indexes ? In such case, indexes are rebuilt at JBoss start but this could take some time with a lot of data.

In order to fix your error,
- stop JBoss (and wait for the effective end of process).
- delete directory server/default/data/NXRuntime/nxsearch-compass/
- start JBoss
- connect with nuxeo-shell
- cause an index recreation by running, for example, "mkdir foo" and "rmdir foo" - now you can run index command and you should not have your "FileNotFoundException" anymore.

If you confirm this have fixed your issue, I'll update the FAQ.
Thanks,


Celine a écrit :
Hello,

Thank you for the reply on my question.

I have followed the steps you're describing:
 1. Stop JBoss
 2. Delete directory server/default/data/NXRuntime/nxsearch-compass/
 3. Start JBoss

(I even deleted the "tmp" and "work" folders to be sure)

But it still gives me the 2 exceptions I described in my first post.  No documents are 
shown in the front-end of Nuxeo since all of the indexes fails with the error 
"Already marked for rollback".

There are 308.000 documents in the repository; I would have liked to be able to recover 
the index (to avoid to be forced to migrate everything again); but it seems not to work 
with the "index" command from Nuxeo-shell.

Would you have an idea how I can recreate/recover those indexes?

Thanks for your help,

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Julien CARSIQUE
Sent: vrijdag 23 januari 2009 11:18
To: [email protected]
Cc: [email protected]
Subject: Re: [Ecm] Nuxeo-shell reindexing

Hello,

Stop JBoss. Delete server/default/data/NXRuntime/nxsearch-compass/
directory. Start JBoss and run again nxshell index command.

If you had a lot of documents and indexing takes too much time, you could also 
try removing only dead/ghost/obsolete documents.
Documentation is here: http://doc.nuxeo.org/xwiki/bin/view/FAQ/Reindexing

Best regards,
Julien

[email protected] a écrit :
Hello,

I had problems accessing the Nuxeo repository, so I started a reindex with the 
Nuxeo-shell.
But when logging into Nuxeo, no documents are shown except one.

In the Nuxeo-shell window, it doesn't give any errors; just the number of 
documents indexed and the time it took.

But if I look in the server.log, there are a lot of exception:

2009-01-22 15:21:23,485 ERROR [org.nuxeo.ecm.core.search.threading.task.IndexingSingleDocumentTask] failed to index document with ref: '07be8df8-1e64-40bf-af81-aede105cb8e9': org.nuxeo.ecm.core.api.WrappedException: Exception: org.compass.core.engine.SearchEngineException. message: *Failed to check if index is compound; nested exception is java.io.FileNotFoundException: /appT2/jbtest1/KM-Nuxeo516-MinFin-Integration/server/default/data/NXRu ntime/nxsearch-compass/index/nxdocs/segments (No such file or directory)*

After this 1st exception, the indexing of all the other documents raises this 
exception:
2009-01-22 15:21:25,451 ERROR [org.nuxeo.ecm.core.search.threading.task.IndexingSingleDocumentTask] failed to index document with ref: 'c19cc9dd-5c34-4628-b825-35252f9924fa': org.nuxeo.ecm.core.api.WrappedException: Exception: org.compass.core.transaction.TransactionException. message: Begin failed with exception; nested exception is javax.transaction.RollbackException: *Already marked for rollback* TransactionImpl:XidImpl[FormatId=257, GlobalId=tyche/136, BranchQual=, localId=136]
org.nuxeo.ecm.core.search.api.client.IndexingException: 
org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.compass.core.transaction.TransactionException. message: Begin failed with 
exception; nested exception is javax.transaction.RollbackException: Already 
marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=tyche/136, 
BranchQual=, localId=136]
at org.nuxeo.ecm.core.search.backend.compass.CompassBackend.index(Compass
Backend.java:380)

Does anyone have an idea what could be the problem with this indexation ? Why does this "FileNotFoundException" occur although the index command is supposed to recreate all those files?

Thanks,
--
Posted by "celine" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2236#6052>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
[email protected] | Tel: +33 1 40 33 79 87

begin:vcard
fn:Julien Carsique
n:Carsique;Julien
org:Nuxeo;Qualiscope Team
adr:;;18 - 20 rue Soleillet;Paris;;75020;France
email;internet:[email protected]
title:Responsable industrialisation et support
tel;work:0140337987
x-mozilla-html:TRUE
url:http://www.nuxeo.com/
version:2.1
end:vcard

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to