Skip to main content
May 15, 2018 1:03 PM UTC
Solved

Anomaly Detection Thing Watcher exception Training failed

Hi,

I'm following the guide https://developer.thingworx.com/resources/guides/anomaly-detection-how-guide . During the model training it fails after calibrating and the application log throws out this error multiple times

 

Screenshot-2018-5-15 ThingWorxMonitor.png

 

Not really sure what the issue could be. Both the training and results microservices are up and running. Thanks.

cmorfinAnswer
May 16, 2018 8:49 AM UTC

Hi

 

The error you get is documented at https://www.ptc.com/en/support/article?n=CS269383.

You need to allocate more memory to the JVM of training and result microservices.

The above article gives the steps to do so.

 

Kind rgeards

Christophe

 

6 replies

May 15, 2018 1:39 PM UTC

Which version of the microservices are you running?

 

Where is the ThingWorx Core server running, and where are the microservices running? The TW Core server must be able to make a network connection to the microservices.

 

Do you see anything in microservices console window?

 

 

May 16, 2018 5:32 AM UTC

I'm running the 2.0.2 version result microservice and 2.0.4 of the training microservice. I've installed the Thingworx Trial Edition in Docker. I've attached the logs for both the training and result microservices.

cmorfinAnswer
May 16, 2018 8:49 AM UTC

Hi

 

The error you get is documented at https://www.ptc.com/en/support/article?n=CS269383.

You need to allocate more memory to the JVM of training and result microservices.

The above article gives the steps to do so.

 

Kind rgeards

Christophe

 

May 15, 2018 1:50 PM UTC

Hi 

 

it probably would be useful to see the ThingWorx log file and mostly the training and result microservice log too (see https://www.ptc.com/en/support/article?n=CS266118 if they are not created by default).

However a common mistake is with the syntax of file.storage.path property.

Do check Configure File Path at https://developer.thingworx.com/resources/guides/anomaly-detection-how-guide/set-and-run-thingwatcher-micro-services . 

You probably are having a version 2.0.5 or later so need to use the correct syntax.

 

Hope this helps

Christophe

 

 

May 16, 2018 5:34 AM UTC

Yes the syntax of file.storage.path is also correct. I've attached the log files.