4 Replies Latest reply on Jul 6, 2017 3:49 AM by mvolanti RSS
    mvolanti Apprentice

    Thingwatcher: Status Anomaly "Initialization Failed"

    Hi everyone,

     

    I'm in truble with anomaly detection, here is my state:

     

    The microservers Result and Training started properly.   (I believe)

     

    I tried to start an anomaly detection from simulated device by kepserverEX in the new composer, but gave me initializaztion Failed.

     

    I notice this error in training/Healthcheck:     (localhost:8091)

     

    "model-destination" : {

      "healthy" : false,

      "message" : "Could not establish connectivity to: results://localhost:8096/results/models"

      },

     

     

    I noticed that:

     

     

     

     

    Thingworx , microservices are in the same PC.

     

    any suggestion?

     

     

    Thanks

      • Re: Thingwatcher: Status Anomaly "Initialization Failed"
        cmorfin Creator

        Hi Maurizio

         

        Could you provide the following information:

        • upload the training and result yml files.

        I would like an upload of the files themselves and not a copy paste as you did in the other post (Thingwatcher microserver training error) as it appears that the copy/paste does not render the lines correctly.

        • add logging appenders to the yml files to print to file and send me the log file for both training and result ms after reproducing error.

        I have attached 2 yml which contains the logging appenders. the yaml format is very sensitive to spaces and tabs so I'd rather not copy paste.
        Copy the added lines or change the port in the attached files.

        the log file swill be created under <Jar microservice folder>/logs .

         

         

         

        Thanks

        Christophe

          • Re: Thingwatcher: Status Anomaly "Initialization Failed"
            mvolanti Apprentice

            Hi Christophe,


            I use your .yml files and after some tests, here is my situation:



            So I put those end point in the AlertProcessingSubsystem



            Started anomaly detection:


            my microservices.properties is:

             


            The anomaly detection always fail :


            Application log from Thingworx  give me some errors:

             

            ERROR:  Anomaly Alert [AlertTest-Random2-anomalyok] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT9999E]  Message :: Unexpected exception. {Throwable=[NonRetryableTrainingRequestException: Received error from POST of Training request with Code(415)_Message(Unsupported Media Type)_Details:_{code=415, message=HTTP 415 Unsupported Media Type}__}]

             

            ERROR: Anomaly Alert [AlertTest-random1-anomaly2] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT9999E]  Message :: Unexpected exception. {Throwable=[NonRetryableTrainingRequestException: Received error from POST of Training request with Code(415)_Message(Unsupported Media Type)_Details:_{code=415, message=HTTP 415 Unsupported Media Type}__}]

             

             

            ERROR: Returning a FAILED state for TimedValue [timestamp=1499248207445, value=7.421176433563232]. ThingWatcherMessage [timestamp=2017-07-05T11:50:08.639, severity=ERROR, state=ThingWatcherInternalState [internal=TRAINING, external=TRAINING], messageCode=WAT9999E, messageText=Unexpected exception. {Throwable=[NonRetryableTrainingRequestException: Received error from POST of Training request with Code(415)_Message(Unsupported Media Type)_Details:_{code=415, message=HTTP 415 Unsupported Media Type}__}]]

             

             

            Then I checked training healtcheck:

             

            Could this be the cause of the problem? 

            How can I fix the ("message" : "Could not establish connectivity to: results://192.168.200.206:9080/results/models")?

             

             

            Thanks a lot!!