Skip to main content
1-Visitor
January 22, 2020
Solved

Model deployment failed on connector TW.AnalysisServices.ThingPredictorConnector

  • January 22, 2020
  • 1 reply
  • 5359 views

Hi,

I have the ThingWorx 8.1.2-b51, it is not a trial or student license.

I can upload datasets and create models but at the moment I cannot publish them. I get the error: Model deployment failed on connector TW.AnalysisServices.ThingPredictorConnector.

I have tried to change the predictive-standalone.yml and redeploy the ThingPredictor JAR file from the command line.

 

In command line (running the JAR) I get warnings like: 

log4j: WARN No appenders could be found for logger.

log4j:WARN Please initialize the log4j system properly.

Cannot resolve place holder for ${microservice.server}

 

And different warnings about varaibles (ex: data.service.url.prefix) being set twice.

 

I believe there was a previous installation of the PredictorConnector, maybe uninstall the previous one might solve the problem? How can I do that?

 

Kind regards.

Best answer by cmorfin

Hi @darcudarcu 

 

Could you please do the following:

 

1) restore the original predictive-standalone.yml, so that there is no more the modification you did.

2) edit system-environment-variable.properties file and add the following lines:

 

working.directory= /C:/INDEFF/WORKFILES/MMAR/thingpredictor

analysis-manager-uri=<Your ThingWorx URI Here>
analysis-manager-appkey=<YOUR Appkey Here>
predictive.http.port=9090
predictive.admin.port=9091
microservices.server=localhost

 

Note 1:  for analysis-manager-uri you need to have the url to the web socket endpoint, that is for example

ws://123.123.123.45:80/Thingworx/WS

 

The /WS is important (and missing in your current yml file)

 

Note 2: you could start by just modifying your current yml file and add the WS at the end of uri.

If it does not work, do the above. It is much cleaner to only update the system-environment-variable.properties file and easier too.

 

Hope this helps

Christophe

 

1 reply

19-Tanzanite
January 22, 2020

Hi @darcudarcu 

 

Is there any chance you could use a newer version ?

Release 8.1 has reached its end of life last year (see https://support.ptc.com/cs/product_calendar/PTC_Product_Calendar.htm#RANGE!A529)

 

 

Thanks

Christophe

 

1-Visitor
January 22, 2020

Hi @cmorfin , 

if that is the only way to solve the issue I will take that possibility into account.

Are there some work-arounds to avoid (at least temporarily) the upgrade?

Regards

19-Tanzanite
January 22, 2020

Hi @darcudarcu 

 

Usually those error were due to config issues. So likely problem in properties or yml file.

You can upload the following:

- system-environment.properties file

- predictive-standalone.yml

- the exact command you use to start ThingPredictor

 

we'll see if we see something obvious there, otherwise the upgrade will probably be needed.

 

Kind regards

Christophe