Skip to main content
Sep 7, 2017 10:47 AM UTC
Question

ThingWatcher Failed state

Hi to everyone,

I've these problems witjh Thingwatcher - Data Anomaly Detection TW 8.0.:

"2Anomaly Alert [Tractor_1-speed-speedAnomaly] Failed when in [CALIBRATING] State. Thingwatcher Error Code :: [WAT1003E]  Message :: Data collection exception. {Throwable=[ThingWatcherDataCollectionException: The data collection limit of 3 has been exceeded. There are too many long gaps in the data.}]"

and

"Returning a FAILED state for TimedValue [timestamp=1504780070919, value=50.17158690012162]. ThingWatcherMessage [timestamp=2017-09-07T12:27:50.934, severity=ERROR, state=ThingWatcherInternalState [internal=COLLECTING_RAW_DATA, external=CALIBRATING], messageCode=WAT1003E, messageText=Data collection exception. {Throwable=[ThingWatcherDataCollectionException: The data collection limit of 3 has been exceeded. There are too many long gaps in the data.}]]"

I'm using a Tractor test to simulate RemoteThing

Schermata 2017-09-07 alle 12.39.19.png

but on Alert page:

Schermata 2017-09-07 alle 10.53.30.png

Schermata 2017-09-07 alle 10.56.11.png

Schermata 2017-09-07 alle 12.11.00.png

Can someone help me?

Thank's a lot,

Luigi

5 replies

Sep 7, 2017 11:11 AM UTC

Hi!

I've Disabled Alert & Enabled Alert, and now, I've this situation: There is an error on Training step (not on Calibration)

"Anomaly Alert [Tractor_1-speed-speedAnomaly] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT1001E]  Message :: Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 1 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@7567df76; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]"

and

"Returning a FAILED state for TimedValue [timestamp=1504781841836, value=52.46955710977383]. ThingWatcherMessage [timestamp=2017-09-07T12:57:21.836, severity=ERROR, state=ThingWatcherInternalState [internal=OBTAINING_MODEL, external=TRAINING], messageCode=WAT1001E, messageText=Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 1 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@7567df76; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]]"

Schermata 2017-09-07 alle 13.11.18.png

Do you have some ideas?

Luigi

Sep 7, 2017 4:47 PM UTC

@Lugi Dell'Aversano

For your first issue it seems that data intervals seems inconsistent, though it has been resolved now. But if it happens again you can start your simulator. Development Team has removed this data interval inconsistency issue in ThingWorx 8.1 release which will be releasing soon.

Current issue: Issue is with the property ‘file.storage.path’ defined in microservices.properties. For Windows, the path is not converted to URI properly. Development team will fix the issue for upcoming 8.1 release.

Meanwhile you can do one thing use file.storage.path=models  instead of  file.storage.path=D:\AnomalyMicroservices\files  in microservices.properties file and use url: jdbc:h2:mem:db.training  instead of url: jdbc:h2:file:D:\AnomalyMicroservices\training\db.training in training-standalone-single.yml.

Make sure your simulator is generating consistent data. Do let me know in case of any question.

Regards,

Mohit Goel​

Sep 11, 2017 3:45 PM UTC

Hi,

i'm the Luigi's Colleague,

We have the following setup:

File:microservices.properties:


Schermata 2017-09-11 alle 17.37.45.png

file:  training-standalone-single.yml

Schermata 2017-09-11 alle 17.35.34.png

Are similar to the paths you suggesting us. I have to change it anyway?

Thanks

Marco