traccar.run command not found

hughkgdn7 years ago

I now have a new VPS server and I need some advice.

When I run the install program tracer.run, I am getting errors:

./traccarbin/traccar.run
Creating directory out
Verifying archive integrity...  100%   All good.
Uncompressing traccar  100%  
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
++++++++++ YAJSW SET ENV ++++++++++
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
/opt/traccar/bin/setenv.sh: line 44: java: command not found
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
/opt/traccar/bin/setenv.sh: line 56: java: command not found
---------- YAJSW SET ENV ----------
/opt/traccar/bin/wrapper.sh: line 7: java: command not found

As this is the first time I have used an unmanaged VPS host, there is probably something I have not done.

Please can you suggest some next steps to resolve the issue.

Many thanks

Hugh

Anton Tananaev7 years ago

Looks like you are missing Java, or it's misconfigured.

hughkgdn7 years ago

Thanks for the advice Anton !

hughkgdn7 years ago

Anton was correct. When I deleted Java and reloaded it using rpm the software worked first time.
Many thanks

Hugh