Skip to main content
1-Visitor
May 27, 2018
Solved

My Thingwatcher failed after training

  • May 27, 2018
  • 1 reply
  • 4101 views

Hello

I have a Thingworx trial edition (Docker).

 

606ec1cb_d9dc_43aa_add2_30c9f8de0848

&nbsp2;

 

ERRORS LOG :

Anomaly Alert [ThingWatcher_Prototype-Consumption-ConsumptionAlert] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT1001E] Message :: Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 3 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@1d681dfb; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]
Returning a FAILED state for TimedValue [timestamp=1527429742927, value=57.76733268258257]. ThingWatcherMessage [timestamp=2018-05-27T14:02:22.944, severity=ERROR, state=ThingWatcherInternalState [internal=OBTAINING_MODEL, external=TRAINING], messageCode=WAT1001E, messageText=Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 2 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@2a05af12; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]]_com.thingworx.analytics.thingwatcher.exceptions.ThingWatcherOperationException: Error accessing PMML Model URI, cannot download model_	at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:673)_	at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.runStateMachineFor(ThingWatcherInternal.java:410)_	at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.bareMonitor(ThingWatcherInternal.java:302)_	at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.monitor(ThingWatcherInternal.java:229)_	at com.thingworx.analytics.thingwatcher.ThingWatcher.monitor(ThingWatcher.java:57)_	at com.thingworx.system.subsystems.alerts.anomalyalert.AnomalyMonitor.monitor(AnomalyMonitor.java:258)_	at com.thingworx.system.subsystems.alerts.data.Alert.doAnomalyEvaluation(Alert.java:565)_	at com.thingworx.system.subsystems.alerts.handlers.NumberAlert.evaluateAlarm(NumberAlert.java:136)_	at com.thingworx.system.subsystems.alerts.data.AlertList.checkAlerts(AlertList.java:87)_	at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:4045)_	at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:3866)_	at com.thingworx.things.Thing.handleSetPropertyWithoutUpdate(Thing.java:4111)_	at com.thingworx.things.Thing.internalSetPropertyVTQ(Thing.java:4102)_	at com.thingworx.things.Thing.setPropertyVTQ(Thing.java:4224)_	at com.thingworx.things.Thing.forcePropertiesVTQ(Thing.java:4126)_	at com.thingworx.webservices.processors.APIProcessor.writeProperties(APIProcessor.java:236)_	at com.thingworx.webservices.processors.APIProcessor.dispatchRequest(APIProcessor.java:66)_	at com.thingworx.system.subsystems.wsexecution.processor.WSExecutionInstance.run(WSExecutionInstance.java:49)_	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)_	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)_	at java.lang.Thread.run(Thread.java:745)_Caused by: com.thingworx.analytics.thingwatcher.Trainer$TrainingJobErrorException: Training job with id 2 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@2a05af12; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]_	at com.thingworx.analytics.thingwatcher.Trainer.lambda$getPMMLModelUri$1(Trainer.java:69)_	at java.util.Optional.orElseThrow(Optional.java:290)_	at com.thingworx.analytics.thingwatcher.Trainer.getPMMLModelUri(Trainer.java:69)_	at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:654)_	... 20 more_

 

http://10.0.75.1:9090/training

 5

http://10.0.75.1:9080/results/models

 

 

4

 

 

 

 

 

3

Best answer by cmorfin

Hi

 

For TTE, you can look under %USERPROFILE%/twx-analytics/anomalydetection/result-standalone.properties

You might have

file.storage.path=/results/models

in which case change it to

file.storage.path=file:///results/models

 

then restart TTE

 

Hope this helps

Kind regards

Christophe

 

1 reply

bakrim1-VisitorAuthor
1-Visitor
May 28, 2018

 

ERROR1

 

 

ERROR_RES

5-Regular Member
May 28, 2018

@bakrim

 

Thank you for opening this Thread here. Could you please confirm if you are using TWX version 8.0, or any other?

 

You can follow this article: https://www.ptc.com/en/support/article?n=CS271378&posno=2&q=calibrating%20fails&source=search

 

Regards,

Mohit

bakrim1-VisitorAuthor
1-Visitor
May 28, 2018

I am using Thingworx Trial Edition