Overview
If you notice that searches are not working and you get error message like this
SearchSQLHelper.cpp, 11534, Executing the search failed. (0x80040418)
(M-Files 22.9.11816.9 2022-10-18T14:41:44.384Z)
This might happen, if IDOL daily content engine is constantly restarting.
Solution
Check the application.log -file from daily content engine. By default, it can be found folder like this:
\IDOL12\logs\prod-content-9000
If you see following kind of lines in the application.log, we need to regenerate reference index.
20/10/2022 08:54:38 [1] 00-Always: Loading reference index.
20/10/2022 08:54:38 [1] 99-Always: Unable to load reference index: Not Implemented.
To perform the regeneration of reference index in daily content engine (9000):
- In M-Files server, shut down M-Files Indexing services, so it does not push new material into IDOL.
- In IDOL server, stop the MFIDOL-prod-Content-9000 services. Make sure its content.exe goes down. (Add 'Command line' column to the task manager's Details tab, so you can differentiate from several content.exe processes.)
- Modify content.cfg related to this engine ( \IDOL12\bin\prod-content-9000\content). Add following lines at the end of [Server] configuration section:
RegenerateRefIndex=True
Example:
[Server]
/// Port=IMPORTANT: Must match the IDOL Server ACI Port setting in M-Files (default is 9000)
Port=9000
/// IndexPort=IMPORTANT: Must match the IDOL Server Indexing Port setting in M-Files (default is 9001)
IndexPort=9001
Threads=4
MaxInputString=-1
XSLTemplates=FALSE
....
AllowSecurityOverride=true
FlushLockFile=\IDOLFlushLock\flushlock.txt
MaxDocumentCountLower=900000
MaxDocumentCountUpper=1000000
RegenerateRefIndex=True
Start MFIDOL-prod-Content-9000 -services. Monitor its application.log. There should be something like this:
20/10/2022 12:36:55 [1] 00-Always: Generating new reference index
20/10/2022 12:36:55 [1] 00-Always: Creating new reference index: processed 22% of documents (elapsed: 0.00s)
20/10/2022 12:36:55 [1] 00-Always: Creating new reference index: processed 33% of documents (elapsed: 0.00s)
- If after the start, the engine stays up and running, stop it, remove RegenerateRefIndex=True from the content.cfg and start again.
- Validate MFIDOL-prod-Content-9000. Run following URL in the IDOL server's web browser. You have to run the validation for each type: DiskIndex, NodeTable, Geospatial, Numeric, RefIndex, Secindex, Unstemmed, so seven times overall. Syntax:
http://127.0.0.1:[Daily index port]/DREVALIDATE?&type=[index type to validate]
Examples:
http://127.0.0.1:9001/DREVALIDATE?&type=DiskIndex
http://127.0.0.1:9001/DREVALIDATE?&type=NodeTable
...
- Check the result of the validation by running MFIDOLConsole command getstatus against daily engine (ACI port, 9000).
MFIDOLConsole cfg=config.txt a=getstatus IDOLServerACIPort=9000 > gs9000.xml
See following article for more information:
https://m-files.force.com/s/article/IDOL-MFAutonomyConsole
In the end of the resulting .xml should be section like this:
<validation>
<result duration="0" timestamp="1640077654" type="diskindex">Success</result>
<result duration="0" timestamp="1640077671" type="nodetable">Success</result>
<result duration="0" timestamp="1640077692" type="refindex">Success</result>
<result duration="0" timestamp="1640077712" type="unstemmed">Success</result>
<result duration="0" timestamp="1640077703" type="secindex">Success, nothing to do.</result>
<result duration="0" timestamp="1640077686" type="numeric">Success</result>
<result duration="0" timestamp="1640077678" type="geospatial">Success</result>
</validation>
- If the validation was successful, run the same getstatus against DAH ( by default: port 19000).
MFIDOLConsole cfg=config.txt a=getstatus IDOLServerACIPort=19000 > gs19000.xml
In the end of resulting .xml there should be:
-<engines>
-<engine>
<number>0</number>
<status>ONLINE</status>
Which means that DAH (the component orchestrating searches) can see daily engine (engine: 0)
- In M-Files server, start M-Files Indexing service.
