Overview
We have had couple of occasions, where an anti-virus software has stolen the port of IDOL engine. That might be hard to detect if you don't know where to look. This article describes how to check and fix the issue.The issue and its verification
Usually, the issue is first noticed from the fact that indexing is halted. Then, in IDOL side's index.log of DIH and corresponding engines might give some errors about not being able to connect with each other. Otherwise, all logs are normal and the engine processes are up and running.To verify the situation, open the command prompt in elevated mode and run the following command:
netstat -a -b -n
That will give you a list of all ports and processes using them. In the following picture you can see a backend engine (content.exe) reserving port 9301.
If you see that the same port is reserved by two different processes, there is your problem. Usually, anti-virus-related process is logically named, so you will probably identify right away.
The fix
There are multiple ways to fix the issue. Probably the most straightforward fix is to change the anti-virus configuration to use another port. Another way is to change the port of the IDOL engine. If you do the latter, the procedure is following:1. In M-Files server, stop MFIndexingManager service.
2. Check that all instances of MFIndexer.exe process go down.
3. Decide a new port number range. It is good practice to change all three ports (Service, ACI and Index) so the configuration of the engine stays even. For example, if the problematic engine used ports 11000, 11001 and 11002 and anti-virus stole 11000, we could change the IDOL engine ports to 11300, 11301 and 11302.
4. In IDOL side, stop DIH, DAH and the engine with the problematic port.
5. Change the port settings in the following configuration files:
a. content.cfg of the content engine. In this example the path of the file would be something like:
C:\IDOL12_dirs\bin\PROD2_dirs-content-11000\content
The corresponding sections and parameters in the file are [Service]:ServicePort and [Server]:Port, IndexPort.
b. dih.cfg usually in path like:
C:\IDOL12_dirs\bin\PROD2_dirs-dahdih-19300\dih
The corresponding section and parameter in the file is [[DIHEngine[number]]]:Port.
c. dah.cfg usually in path like:
C:\IDOL12_dirs\bin\PROD2_dirs-dahdih-19300\dah
The corresponding section and parameter in the file is [DistributedEngine[number]]:Port.
Exceptions:
- If Daily is changed, there is no need to change dih.cfg (doesn't exist there), but you have to change the configuration in M-Files: IDOL Server ACI Port and IDOL Server Indexing Port.
- If DIH or DAH are changed, change only corresponding [Service]:ServicePort, [Server]:Port and if DIH, [Server]:IndexPort. Also, change the corresponding configuration in M-Files: Distributed ACI Port for DAH, Distributed ACI Port for DIH and Distributed Indexing Port.
6. Start DIH, DAH and the engine with the problematic port.
7. Check from their application.log that they are up and running nicely.
8. In M-Files server, start MFIndexingManager service.
