cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Installing Thingworx Analytics Builder part 3 of 3

No ratings

In this video we cover the installation of the UploadThing module.

This video applies to ThingWorx Analytics 52.2 till 8.0. This is no longer applicable with ThingWorx Analytics 8.1

 

Useful links:

Updated Link for access to this video:  Installing Thingworx Analytics Builder: Part 3 of 3

 

Comments
Do1

I am trying to install the UploadThing on Ubuntu Server 14.04.5 LTS

UploadThing_Install-52-2.zip

This is the errors I get:

duan@ubuntu:/tmp$ sudo sh ./install.sh

-en

Checking java version...

-e OK

Where do you want to install 'UploadThing' [/opt]?

./install.sh: 1: ./install.sh: Bad substitution

./install.sh: 142: [: ==: unexpected operator

sudo: chkconfig: command not found

/etc/init.d/UploadThing: line 8: /etc/rc.d/init.d/functions: No such file or directory

Starting UploadThing: /etc/init.d/UploadThing: line 19: runuser: command not found

touch: cannot touch ‘/var/lock/subsys/UploadThing’: No such file or directory

/etc/init.d/UploadThing: line 23: success: command not found

The script seems to be targeted specifically at Centos and seems incompatible with Ubuntu.

I would appreciate any help.

Hi Duan

Can you try using the script from https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS246768 ?

Thanks

Kind regards

Christophe

Do1

Thanks for the link Christophe,

This is the content of the updated install.sh:

#!/bin/sh

version=1.0

uploadThingDir=/opt/UploadThing-${version}

if [ ! -f ${uploadThingDir}/bin/UploadThing ]

then

    uploaddir=

    while [ -z $uploaddir ]

    do

        read -p "Where is the 'UploadThing' installed [/opt]? " uploaddir

        if [ -z $uploaddir ]

        then

            uploaddir="/opt"

        fi

        uploadThingDir=${uploaddir}/UploadThing-${version}

        if [ ! -f ${uploadThingDir}/bin/UploadThing ]

        then

            echo -e "\n****  This is not where 'UploadThing' is installed, try again\n"

            uploaddir=

        fi

    done

fi

cat UploadThing.ori | sed -e "s|::uploaddir::|${uploadThingDir}|g" > UploadThing

cp UploadThing /etc/init.d

chmod 755 /etc/init.d/UploadThing

chkconfig UploadThing on

service UploadThing start

Unfortunately it seems it is not compatible with Ubuntu 14.04.5

duan@ubuntu:/tmp$ sudo sh ./install.sh

./install.sh: 28: ./install.sh: chkconfig: not found

/etc/init.d/UploadThing: line 8: /etc/rc.d/init.d/functions: No such file or directory

Starting UploadThing: touch: cannot touch ‘/var/lock/subsys/UploadThing’: No such file or directory

/etc/init.d/UploadThing: line 17: runuser: command not found

/etc/init.d/UploadThing: line 21: success: command not found

As far as I can tell the problem lies with chkconfig:

My research shows:

The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d.This command nearly supports all the new versions of ubuntu.

The similar commands are

update-rc.d <service> defaults update-rc.d <service> start 20 3 4 5 update-rc.d -f <service>  remove

Hi Duan

Thank you for the feedback.

Then it would seem there is indeed an issue on Ubuntu newer releases.

I am checking on this and will update you when I get more information

Regards

Christophe

Hi Duan

I have reported this to R&D as the install script does not work indeed on latest release of Ubuntu.

You can find more details at https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS257078 .

For now one way around it is to Create, configure and Upload the dataset through REST API, then use ThingWorx Analytics Builder to manage the uploaded dataset.

Kind regards

Christophe

Version history
Last update:
‎Sep 13, 2016 04:19 AM
Updated by:
Labels (2)