The root cause is that the log index file is corrupted. The corruption is caused by unexpected shutdown. When this happens, the log index file cannot be recovered.
As a workaround, rebuild the index:
- Stop the CommonLog service using this command:
/etc/iscan/S99ISCommonLog stop
- Back up the file /etc/iscan/commonlog_solr/solr/collection1/ and remove it.
- Run the following commands:
rm -rf /etc/iscan/commonlog_solr/solr/collection1/
cp -rf /etc/iscan/commonlog_solr/solr/collection0 /etc/iscan/commonlog_solr/solr/collection1
chown -R iscan:iscan /etc/iscan/commonlog_solr/solr/collection1
- Start the CommonLog service.
/etc/iscan/S99ISCommonLog start