Skip to main content
1-Visitor
June 12, 2017
Solved

Thingworx Dataconnect

  • June 12, 2017
  • 1 reply
  • 5101 views

Hello,

      I Have installed thingworx analytics and dataconnector on separately virtual machines on the same virtual box installed .

1.Thingworx analytics server is working fine.(192.168.56.104)

2.Dataconnector gives error while accessing it through the broswer(192.168.56.104:8080)

when i enter 192.168.56.104:8080 it says i am alive but when i put the whole url /1.0/about/versionfo it gives 404 error .

I am sharing my logs files screenshots of the url and also the dataconnect.conf files

i tried these different sets of urls but couldnt reach the site or got 404 error

http://192.168.56.104:8080/twxml-connect/about/versioninfo

http://192.168.56.104:8080/1.0/about/versioninfo

http://192.168.56.104:8080/twxml-connect/1.0/about/versioninfo

Looking forward for your reply

Warm Regards,

Amar

Best answer by cmorfin

Hi Amar

Some questions:

- do you remember if you ran the command yum install DataConnect.rpm more than once on this machine ?

- could you upload:

    - file listRoot.txt file created after executing the command ls -l <Tomcat>/webapps/ROOT/WEB-INF/lib

    - file listtwxml.txt file created after executing the command ls -l <Tomcat>/webapps/twxml-connect/WEB-INF/lib

    - file  <Tomcat>/webapps/twxml-connect/WEB-INF/lib/dataconnect.db-7.4.0.jar


Also are you sure the dataconnect.conf you previously uploaded is the latest one under /opt/dataconnect/config ?
If the log files you uploaded are the latest, they complain about issue with postgres, but your dataconnect.conf is set to H2. So I would think either the dataconnect.conf or the log files are not taken from the same time.

Thank you

Kind regards

Christophe

1 reply

cmorfin19-TanzaniteAnswer
19-Tanzanite
June 12, 2017

Hi Amar

Some questions:

- do you remember if you ran the command yum install DataConnect.rpm more than once on this machine ?

- could you upload:

    - file listRoot.txt file created after executing the command ls -l <Tomcat>/webapps/ROOT/WEB-INF/lib

    - file listtwxml.txt file created after executing the command ls -l <Tomcat>/webapps/twxml-connect/WEB-INF/lib

    - file  <Tomcat>/webapps/twxml-connect/WEB-INF/lib/dataconnect.db-7.4.0.jar


Also are you sure the dataconnect.conf you previously uploaded is the latest one under /opt/dataconnect/config ?
If the log files you uploaded are the latest, they complain about issue with postgres, but your dataconnect.conf is set to H2. So I would think either the dataconnect.conf or the log files are not taken from the same time.

Thank you

Kind regards

Christophe

achaube1-VisitorAuthor
1-Visitor
June 12, 2017

Hello Christophe,

  Thanks for reply ..

1. Yes had installed dataconnect rpm on the same system multiple times by using yum install dataconnect.rpm

2.there are no listRoot.txt and listtwxml.txt files in the /ROOT/WEb-INF/lib folder and /twxml-connect/web-inf/lib folder

3. i had set the java opts for database as psotgresql in tomcat.conf to thats why the looged fil showed postgresql.now i have changed it to h2

    shareing the latest log file along with the dataconnect.conf and tomcat.conf files.you can see the entries in log files for date 2017-06-12 from 7:50

Thank you.

warm regards,

Amar

19-Tanzanite
June 12, 2017

Hi Amar

Thanks, the logs make more sense since you updated this Tomcat setting .

I miss part of the command in my previous post, this is why you did not find the txt file - apologies for this.
They would still be useful to me, so could you please send the 2 files:

     - file /tmp/listRoot.txt file created after executing the command ls -l <Tomcat>/webapps/ROOT/WEB-INF/lib >/tmp/listRoot.txt

    - file /tmp/listtwxml.txt file created after executing the command ls -l <Tomcat>/webapps/twxml-connect/WEB-INF/lib > /tmp/listtwxml.txt

We are likely having 2 installation of DataConnect that then conflict with each other, but the above files should confirm this and we can see what step to take next.

Thanks

Christophe