Skip to main content
1-Visitor
May 29, 2020
Solved

Thingworx Analytics Installation error ERLANG_HOME

  • May 29, 2020
  • 1 reply
  • 7312 views

My issue is similar to this thread, however I have followed the documentation I believe: https://community.ptc.com/t5/ThingWorx-Developers/Issues-installing-Analytics-Setup-ERLANG-HOME/m-p/655100

 

I have Thingworx Foundation installed, now I need to install Analytics.

 

Analytics installation fails. Specifically, "ERLANG_HOME system environment variable is not set correctly. Set ERLANG_HOME to point to where Erlang software is located, for example, C:\Program Files\erl10.0"

 

I do have installed Erlang and set the environment variable for the system. The installation of Analytics still fails.

Possibly relevant: I have not yet installed Analytics Server, as I don't think that is required.

 

To troubleshoot this issue I have done the following:

I have set the environment variable to

C:\Program Files\erl10.0\

C:\Program Files\erl10.0

C:\Program Files\erl10.0\bin\

C:\Program Files\erl10.0\bin

 

I have uninstalled and reinstalled Erlang. 

I have tried version 21.3 (latest supported version)

I have tried an earlier supported version 20.3 (currently installed).

I have done a few restarts.

 

Thanks for any assistance you can provide.

Best answer by Matt-H

Thanks @slangley I logged in today to try again and got in using localhost:8080/Thingworx/Composer/index.html

Though I haven't gotten Platform Analytics installed, I'll close this thread off here because we've resolved the problem of getting Thingworx installed (after uninstalling) has been resolved. When I want to try install Platform Analytics again, I will try and if I have any further issues I will create a new thread. This one has been a beast. Thanks to you and also @nsampat  for your help. Hopefully this thread is helpful to others.

1 reply

17-Peridot
May 29, 2020

Hello @Matt-H ,

 

Thank you for posting to the PTC Community.

 

I understand you are having difficulty with deploying ThingWorx Analytics, around the Erlang pre-requisite.

 

Can you provide more specifics, as Erlang is not required for the Base Application, ThingWorx Analytics Server. Erlang is required for ThingWorx Platform Analytics, which is a separate application.

 

Are you able to provide the versions of ThingWorx Platform Server, ThingWorx Analytics Server you wish to deploy?

 

Also, please note, these variables must be set as a System Variable, not a User Variable.

 

Regards,

 

Neel

Matt-H1-VisitorAuthor
1-Visitor
June 2, 2020

Hi Neel,

 

Thanks for your assistance. 

 

Having restarted my Virtual machine again (this time after a long weekend), I am able to get passed the ERLANG_HOME environment variable error.

 

The resolution seemed to be:

1. I uninstalled erlang

2. reinstalled the otp_win64_20.3 version of erlang

3. set the system variable once again.

Now I encounter a new error, shown below.

2020-06-02 08_31_42-ThingWorx - VMware Workstation.png

 

Do I need to install ThingWorx Analytics Server for Windows i.e. ThingWorx-Analytics-Server-Windows-8-5.zip?

 

I created an appkey in ThingWorx Foundation.

2020-06-02 08_53_35-ThingWorx - VMware Workstation.png
 

 

ThingWorx Foundation is running.

 

Is it possible that I have misread the guides and need to install the ThingWorx Analytics Server and create an appKey there. Is this my mistake?

 

(I would simply install the server to check this possibility myself, but I encounter the following errors):

Server installation error: 

2020-06-02 08_45_16-ThingWorx - VMware Workstation.png

My version of java:

2020-06-02 08_46_49-ThingWorx - VMware Workstation.png

Location of Java:

2020-06-02 08_45_44-ThingWorx - VMware Workstation.png

Environment variables:

2020-06-02 08_45_31-ThingWorx - VMware Workstation.png

 

 

 

 

Please note that having set the JAVA_HOME system variable (which wasn't set before -- although the same location was specified in System's PATH variable), I now get another error:

2020-06-02 08_58_50-ThingWorx - VMware Workstation.png

 

I've tired 127.0.0.1 and localhost.

 

Thanks

17-Peridot
June 2, 2020

@Matt-H ,

 

I think you would benefit from reading Knowledge Article around the ThingWorx Analytics Suite of offerings.

 

It appears that you desire to use both Platform Analytics and ThingWorx Analytics Server, the main Application is ThingWorx Analytics Server.

 

Analytics Workbench (the item in the sidebar you are referring to - Analytics Builder, Analytics Manager) is part of ThingWorx Analytics Extensions, for use with ThingWorx Analytics Server, and not with ThingWorx Platform Analytics.

 

The Tutorial you are trying to follow requires both, as far as I can tell in the description.

 

Also, is SSL in scope, I see port 8443 indicated in your connection info. Is this the correct port for you LocalHost Foundation (Platform) Server. Non-SSL deployments typically use port 8080 or 80 depending on your Tomcat configuration.

 

Note:

 

  • ThingWorx Foundation (Platform Server) is a pre-requisite for all ThingWorx Analytics Applications
  • ThingWorx Analytics Server - the main application for Data Analytics, Machine Learning, Predictive Analytics
  • Platform Analytics - ancillary offering, distinct and separate from ThingWorx Analytics main application, used for Property Transforms and Descriptive Analytics

Please read the article linked above for more details around the ThingWorx Analytics product offerings.

 

Regards,

 

Neel