Skip to Content
avatar image
Former Member

TREX- Index Invalid Queue Status

Hi,

One of the index is showing "invalid" status in TREX Monitor. In indexing monitor, error is being showed for several files. Under Application log, we are getting "AbstractTrexIndex: indexing some of the resources failed" and "Indexing document failed. Filter: Error writing to file (Errorcode 14047) " error. There is sufficient hard drive space on the TREX server.

Log files:

[25572] 2010-09-11 01:02:29.270 e TREX_C_STORE CSFile.cpp(00871) : ERROR: remove d:\usr\sap\PGT\TRX22\index\idx_dam\en\ failed, rc=32 The process cannot access the file because it is being used by another process. Trying again (0/6) ...

[25572] 2010-09-11 01:02:29.471 e TREX_C_STORE CSFile.cpp(00877) : No handle information

[25572] 2010-09-11 01:02:39.472 e TREX_C_STORE CSFile.cpp(00871) : ERROR: remove d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.write failed, rc=32 The process cannot access the file because it is being used by another process. Trying again (1/6) ...

[25572] 2010-09-11 01:02:39.672 e TREX_C_STORE CSFile.cpp(00877) : No handle information

[25572] 2010-09-11 01:02:49.686 e TREX_C_STORE CSFile.cpp(00881) : remove d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.write rc=0

[25572] 2010-09-11 01:02:49.686 e TREX_C_STORE CSFile.cpp(00918) : ERROR: rename d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.tmp -> d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.write failed. rc=183 Cannot create a file when that file already exists. Trying again (0/6)...

[25572] 2010-09-11 01:02:49.893 e TREX_C_STORE CSFile.cpp(00923) : No handle information

[25572] 2010-09-11 01:02:59.894 e TREX_C_STORE CSFile.cpp(00927) : rename d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.tmp -> d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore.write rc=0

[25572] 2010-09-11 01:02:59.894 e TREX_C_STORE CStoreFiler.cpp(01062) : commit failed d:\usr\sap\PGT\TRX22\index\idx_dam\en\contentStore

[25572] 2010-09-11 01:02:59.895 e TrexCabinet Stapler.cpp(01146) : commitOptimize failed for contentStore

[25572] 2010-09-11 01:02:59.895 e TrexCabinet Stapler.cpp(01149) : commitOptimize failed for stapler contentStore

[25572] 2010-09-11 01:02:59.904 e TrexStore PersistentDocStore.cpp(01833) : TrexStore error: CommitError in function PersistentDocStore::commitOptimize

[25572] 2010-09-11 01:02:59.904 e Trex_SE FuzzyOptimizer.cpp(02365) : ERROR: m_docStore->commitOptimize failed.

[25572] 2010-09-11 01:02:59.904 e Trex_SE FuzzyOptimizer.cpp(03986) : commitOptimizeFullText 'idx_damen' failed rc=4526

[25572] 2010-09-11 01:02:59.921 e SERVER_TRACE DeltaIndexManager.cpp(01899) : commit failed for idx_damen

[25572] 2010-09-11 01:02:59.921 e SERVER_TRACE TRexApiIndexDocuments.cpp(10894) : TRexApiIndex::commitLocal failed, Index Id: idx_dam

[25572] 2010-09-11 01:02:59.938 e SERVER_TRACE TRexApiAdmin.cpp(10762) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

[24896] e SERVER_TRACE TRexApiAdmin.cpp(16955) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

[29560] 2010-09-11 01:05:25.577 e SERVER_TRACE TRexApiAdmin.cpp(16955) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

[25572] 2010-09-11 01:10:25.606 e SERVER_TRACE TRexApiAdmin.cpp(16955) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

[25712] 2010-09-11 01:10:25.621 e SERVER_TRACE TRexApiAdmin.cpp(16955) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

[29560] 2010-09-11 01:15:25.660 e SERVER_TRACE TRexApiAdmin.cpp(16955) : Index idx_dam in undefined state (7) and can not be used (commit failed). Please try external commit again.

Any help would be appreciated.

Regards,

Vaibhav

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 21, 2010 at 05:04 PM

    Hi Vaibhav,

    - The errorcode 14047 is a filter error. The main reason for these errors is your current filter version is not able to filter your documents before they are indexed. The only way to resolve this is to upgrade your filter version. To do this you would have to upgrade to the latest revision release of your Trex version.This will include the latest filter release.

    - Another cause of the 14047 error is the files you are indexing maybe too large for the filter and timing out. So before you upgrade you can test this theory by increasing the following parameters

    1)"maxfiltersize" parameter in TREXFilter.ini up to a bigger value.

    2)"timeout " parameters in TREXPreprocessor.ini ; to a bigger value.

    A restart of the trex services and a re-index is required after these changes.

    - Before you resolve the 14047 errors there is a more pressing issue. From the trace entry I see the following error:

    "rc=32 The process cannot access the file because it is being used by another process"

    I would like you to examine note 808768. This note explains how third party tools such as an antivirus tool or back up tool can lock documents before they are indexed and cause courption.You will need to check your trex server against the note I supplied.

    - Looking at the rest of the trace file I see the index "Index idx_dam" in undefined state. Because of the issues mentioned above your index is probably corrupted. So to resolve a corrupt index the best method is to delete the index from the portal and recreate it in the portal again and do a full re-index.

    I hope this information is helpful to you.

    Kind Regards,

    Barry Cunningham

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2010 at 08:01 AM

    Some suggestions

    Trex makes a folder for each index in d:\usr\sap\PGT\TRX22\index

    Depending on the language he adds a subfolder. Do you already have an index running. If so this particular index may be corrupted and I would suggest to completly delete the index and its folder and retry to configure it.

    If this is your first index it could have multiple reasons. Check the most obvious first. TREX uses an technical user to write to disk. Does this user have sufficient write rights on the index folder. In unix it can sometimes be a hassle.

    Second suggestion : Start stop Trex (i know old one of the oldest IT sollutions);

    Try to index a simple text document only. This could tell you more of the cause.

    Succes

    Add comment
    10|10000 characters needed characters exceeded