Skip to main content
12-Amethyst
April 1, 2019
Solved

Analytics Things stopped connecting after IP address of the VM changed

  • April 1, 2019
  • 1 reply
  • 5654 views

I have Thingworx platform and Thingworx Analytics installed in a CentOS VM on my laptop. It was working fine until, the IP address of the VM changed (or so I suspect, may be something else also might have affected this).

Please see the attached snapshots - all configurations are with localhost. I haven't used any IP addresses while configuring the Analytics and everything is on the same VM. Is there a way to get edge logs to see whats the error? I do not see anything useful in the Thingworx logs or Analytics logs.

Best answer by SajidPatel

Thanks for your time @cmorfin 

Due to these investigations, I was able to find the root cause of the issue. The Java JRE path was hardcoded with specific Java JRE version. It was updated when I installed some other component on the VM as a result breaking the services. I have updated the services and it is working fine now.

Thanks! 

1 reply

19-Tanzanite
April 1, 2019

Hi @SajidPatel 

 

From the properties file it appears that ThingWorx Analytics connect to ThingWorx using the hostname centos7.

Given that this is a VM I am guessing this is a local name resolution via /etc/hosts file.

So maybe the ip settings in /etc/hosts for this hostname is not up to date anymore.

You can try ping centos7 in a terminal to check if it responds.

 

Regarding log files, those depends on the version of ThingWorx Analytics used, the article https://www.ptc.com/en/support/article?n=CS268761 will tell you where to find them based on the version.

 

Hope this helps

Kind regards

Christophe

 

12-Amethyst
April 1, 2019

@cmorfin Thanks for responding

 centos7 is the localhost. ping works fine, please see the attached screenshot.

 

19-Tanzanite
April 1, 2019

Hi @SajidPatel 

 

Can you specify the version of ThingWorx Analytics you are using and can you upload all the logs from <ThingWorxAnalytics>/data/logs folder ?

 

Thanks

Christophe