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 3, 2020

@Matt-H ,

 

I have the following three questions:

 

  1. Are you using a Commercial ThingWorx Foundation Server (Platform Server, TWX)?
  2. Are you using a Commercial ThingWorx Analytics Server (TWAS)?
  3. Are you using a Commercial ThingWorx Platform Analytics Server (TWPAS)?

Note, you cannot mix Trial Versions with Commercial versions when it relates to ThingWorx Analytics and ThingWorx Platform. Regarding the Kepware deployment, I cannot comment on that as I do not have much familiarity with that product.

 

You are correct that is what is being referenced in documentation. Foundation Server and Platform Server are the same application in this context, this is the pre-requisite we discuss that runs on Tomcat. The naming can be confusing, but we are working with three different applications here.

 

Regarding the error you saw in the linked post, that is in relation to ThingWorx Foundation Server (Platform Server) Trial Edition, and as far as I understand you have not previously attempted to deploy ThingWorx Analytics Server.

 

The error message I am seeing below states that the installer for TWAS is looking for a Trial License TWX Server. Can you verify that you have matching versions of the product in regards to Trial verse Commercial?

 

Regards,

 

Neel