Skip to main content
Sep 1, 2017 10:45 AM UTC
Solved

Installing Analytics ThingWatcher - Error: trying to mount a directory onto a file

Hello,

i'm trying to install Thingwatcher for ThingWorx Analytics 8.0, i have correctly run the commands related  with "results" as:

sudo docker run -d -p 8070-8070 –name twresultcontainer -v home/parallels/twdb:/tmp/ -v/home/microservices.properties:/maven/result-standalone.propertiestwxml7result-standalone.2.0 -jar maven7resul-standalone-2.0-bin.jarserver maven/result-h2-file.yml

but i have a problem with command related with "training":

sudo docker run -d -p 8060-8080 –name twa -v /home/microservices.properties:/maven/training-standalone.properties twxml/training-standalone.2.0.0


This is the result:


are you trying to mount a directory onto a file(or vice-versa) ' Check if he specified host path exists and is the expected type


Schermata 2017-09-01 alle 12.40.09.png

My microservices.proprerties file is located in home directory and its content is:

results.destination.uri=results://my-ip:8080/results/models

file.storage.path=home/parallels/results/models

My db folder (twdb) is located in home directory too.

Can you help me?

Thank you

cmorfinAnswer
Sep 4, 2017 11:19 AM UTC

Hi Marco

For you jar deployment the error comes formt he extra sapce around the "=" sign after -Dproperties.file

you have

java -Dproperties.file = /homw/twtrain/microservice.properties result-standalone-2.0-bin.jar server esult-h2-file.yml

you should have

java -Dproperties.file=/homw/twtrain/microservice.properties result-standalone-2.0-bin.jar server esult-h2-file.yml


Could you try this ?

Thanks

Christophe

14 replies

Sep 1, 2017 2:52 PM UTC

I have tried also with jar alternative and i got this error when i run:

java -Dproperties.file = /homw/twtrain/microservice.properties result-standalone-2.0-bin.jar server esult-h2-file.yml

(previously i set the yml file:

Schermata 2017-09-01 alle 16.33.02.png

"could not find or load main class"

Schermata 2017-09-01 alle 16.47.15.png

Thanks

Marco

Sep 4, 2017 8:21 AM UTC

Anyone can know something about that?