The Admin > Servers page within the Symantec Endpoint Protection Manager (SEPM) displays an error which reads "Datastore error" on a regular basis.
Scm-server-0.log
2021-09-22 03:08:50.776 THREAD 11767 SEVERE: Datastore error in: com.sygate.scm.server.task.AgentAVLogCollector$ExecutorTask
java.lang.StringIndexOutOfBoundsException: start 1, end 0, length 1
at java.base/java.lang.AbstractStringBuilder.checkRangeSIOOBE(AbstractStringBuilder.java:1724)
2021-09-22 03:08:50.919 THREAD 11769 SEVERE: Datastore error in: com.sygate.scm.server.task.AgentAVLogCollector$ExecutorTask
java.lang.StringIndexOutOfBoundsException: start 1, end 0, length 1
One or more Symantec Endpoint Protection clients is forwarding invalid logs to the SEPM. The SEPM is unable to process the invalid logs which generates the "Datastore error" AgentAVLogCollector$ExecutorTask error messages.
The Scm-server-0.log and AgentAVLogCollector-ExecutionPool-1-0.log will allow you to isolate which client is sending invalid log record causing the SEVERE: Datastore error in: com.sygate.scm.server.task.AgentAVLogCollector$ExecutorTask java.lang.StringIndexOutOfBoundsException.
Location of the Tomcat logs:
<Drive>:\Program Files (x86)\Symantec\Symantec Endpoint Protection Manager\tomcat\logs
Note: You will need to enable finest logging (scm.log.loglevel=FINEST) in the conf.properties (\tomcat\etc) for verbose logging.
Enabling Tomcat server debugging for the Endpoint Protection Manager
Capture the Datastore error events from scm-server-log
Example:
2021-09-22 03:08:50.776 THREAD 11767 SEVERE: Datastore error in: com.sygate.scm.server.task.AgentAVLogCollector$ExecutorTask
java.lang.StringIndexOutOfBoundsException: start 1, end 0, length 1
Locate the client(s) that sent Invalid Log Record
Example:
2021-09-22 03:08:50.764 THREAD 11767 WARNING: Error during AV record processing: com.sygate.scm.server.logreader.ParseException (3): Invalid log record: Invalid dates found in log line. 33001C060F27,45,4,14,<CLIENT_COMPUTER_NAME>,SYSTEM,,,,
After you locate the client in question, upgrade to the latest version of SEP or cleanwipe and reinstall.