config new tracker-server.jar

jesusle7 years ago

Hi Anton,
How to set new path of tracker-server.jar in file traccar.xml?

Anton Tananaev7 years ago

You don't. JAR is the main executable file.

jesusle7 years ago

Yes, but which says in installation then. (release 3.14. i m replacing tracker-server.jar for other without issue in alarm decoder)
Install
Extract archive to any directory
Set up paths in the config file (traccar.xml)
Run using following command:
java -jar tracker-server.jar conf/traccar.xml

Anton Tananaev7 years ago

Any paths that you have in the config file. It's possible that you don't need to change anything.

jesusle7 years ago

I executed this command

java -jar tracker-server.jar conf/traccar.xml

and have this error

Exception in thread "main" java.lang.NoClassDefFoundError: liquibase/resource/ResourceAccessor
        at org.traccar.Context.init(Context.java:333)
        at org.traccar.Main.main(Main.java:35)
Caused by: java.lang.ClassNotFoundException: liquibase.resource.ResourceAccessor
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

or

Exception in thread "main" java.lang.NoClassDefFoundError: com/ning/http/client/AsyncHttpClient
        at org.traccar.Context.<clinit>(Context.java:205)
        at org.traccar.Main.main(Main.java:35)
Caused by: java.lang.ClassNotFoundException: com.ning.http.client.AsyncHttpClient
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more
Anton Tananaev7 years ago

Looks like you are missing Java dependencies.

jesusle7 years ago

I have 3.14. mabe that isi the problem? need 3.16

Anton Tananaev7 years ago

Of course it's a problem if you are trying to use new JAR with old everything else.

jesusle7 years ago

Yes thanks

Regards

jesusle7 years ago

With 3.16 when want stop the service show me this error

user@ubuntu:/opt/traccar$ sudo /opt/traccar/bin/stopDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
---------- YAJSW SET ENV ----------
sudo: unable to execute /opt/traccar/bin/stopDaemonNoPriv.sh: No such file or directory
/opt/traccar/bin/stopDaemon.sh: lĂ­nea 36:  1339 Colgar (hangup)         sudo "$PRGDIR"/"$EXECUTABLE"
Anton Tananaev7 years ago

You need to fix stopDaemonNoPriv script:

https://www.traccar.org/forums/topic/stop-traccar-error/

jesusle7 years ago

Thanks!

jesusle7 years ago

Hi
Alarm of sos in the historical record of events is not detailed just says alarm, nor another type of alarm. But yes is detailed in current events, the events window. How can it be detailed in the historical events?

Anton Tananaev7 years ago

Screenshot please.

jesusle7 years ago

How to upload an image here?