3.8 Install Problem

Neil Romig7 years ago

I am running 3.7 and I have just tried installing 3.8 but get this output:

++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-b15)
OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-b15)
OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-b15)
OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-b15)
OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-beta-12.07
OS   : Linux/4.8.4-1-ARCH/amd64
JVM  : Oracle Corporation/1.8.0_112//usr/lib/jvm/java-8-openjdk/jre/64
Nov 20, 2016 8:52:01 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Nov 20, 2016 8:52:01 AM org.rzo.yajsw.os.posix.PosixService init
WARNING: Error /etc/init.d : is not a directory
************* INSTALLING traccar ***********************

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: java.lang.NullPointerException
    at java.io.File.<init>(File.java:277)
    at org.rzo.yajsw.os.posix.PosixService.state(PosixService.java:649)
    at org.rzo.yajsw.wrapper.WrappedService.state(WrappedService.java:618)
    at org.rzo.yajsw.wrapper.WrappedService.isInstalled(WrappedService.java:375)
    at org.rzo.yajsw.WrapperExe.doInstall(WrapperExe.java:371)
    at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:166)
    at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:124)
    ... 5 more

I see much has changed between versions! I am running Arch linux using systemd, and in 3.7 I had to create file /etc/lsb-release and set USE_SYSTEMD=true to get it to install systemd-style.

Anton Tananaev7 years ago

It looks like you don't have "/etc/init.d" directory. You should probably adjust "wrapper.daemon.dir" parameter in the wrapper configuration file:

http://yajsw.sourceforge.net/YAJSW%20Configuration%20Parameters.html

Neil Romig7 years ago

I have opened an issue on github for this. It is best that the install script can run successfully on Arch Linux I think.