Article - CS298126

Error "AnalyticsServer_TrainingThing is not connected" is returned when executing a training job via a custom service in ThingWorx Analytics

Modified: 22-Feb-2019   


Applies To

  • ThingWorx Analytics 8.3.2

Description

  • Following error is returned when executing a training job via a custom service
Error executing service XXXX. Message :: AnalyticsServer_TrainingThing is not connected - See Script Error Log for more details.
or
Execution error in service script [XXXX] :: Error returned from service [500]: Failed during training

 
  • <ThingWorxAnalyticsServer>/data/logs/training.log report
com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor: Job submission for TrainingJob [20181213] of type TrainingJob failed:
! org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /twxml_job_queue/jobs/job_1539618311317_245_
! at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
! at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
! at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
! at net.dempsy.cluster.zookeeper.ZookeeperSession.lambda$mkdir$0(ZookeeperSession.java:106)
! at net.dempsy.cluster.zookeeper.ZookeeperSession.callZookeeper(ZookeeperSession.java:280)
! ... 69 common frames omitted
! Causing: net.dempsy.cluster.ClusterInfoException: Zookeeper failed while trying to mkdir at /twxml_job_queue/jobs/job_1539618311317_245_
! at net.dempsy.cluster.zookeeper.ZookeeperSession.callZookeeper(ZookeeperSession.java:293)
! at net.dempsy.cluster.zookeeper.ZookeeperSession.mkdir(ZookeeperSession.java:102)
! at com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor.executeJob(DempsyClusterJobExecutor.java:691)
! at com.thingworx.analytics.ccc.dropwizard.service.JobService.runIt(JobService.java:64)
! at com.thingworx.analytics.training.core.TrainingService.trainModel(TrainingService.java:90)
! at com.thingworx.analytics.training.resources.TrainingResource.submitTrainingJob(TrainingResource.java:39)
! at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)...

 
Exception causing close of session 0x167a7c986bf0006 due to java.io.IOException: Len error 1099339
or
java.io.IOException: Unreasonable length = 1099374
This is a printer-friendly version of Article 298126 and may be out of date. For the latest version click CS298126