First, is your system fully updated?
Have you tried installing as a normal user and not as 'root' 'admin' or using sudo?
Mark
error????
WARNING|wrapper|Service traccar|19-04-29 15:56:02|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|19-04-29 15:56:02|OS : Linux/3.16.0-4-amd64/amd64
WARNING|wrapper|Service traccar|19-04-29 15:56:02|JVM : Oracle Corporation/1.7.0_171//usr/lib/jvm/java-7-openjdk-amd64/jre/64
INFO|wrapper|Service traccar|19-04-29 15:56:02|exec:java -classpath /opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/ical4j-2.0.5.jar:/opt/traccar/lib$
INFO|wrapper|Service traccar|19-04-29 15:56:02|posix_spawn pid 24298
INFO|wrapper|Service traccar|19-04-29 15:56:02|started process 24298
INFO|wrapper|Service traccar|19-04-29 15:56:02|started process with pid 24298
INFO|24298/0|Service traccar|19-04-29 15:56:03|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|24298/0|Service traccar|19-04-29 15:56:03|java.lang.UnsupportedClassVersionError: org/traccar/Main : Unsupported major.minor version 52.0
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.lang.ClassLoader.defineClass1(Native Method)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
INFO|24298/0|Service traccar|19-04-29 15:56:03|no java main method found -> aborting
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.security.AccessController.doPrivileged(Native Method)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.WrapperManagerImpl.loadJar(WrapperManagerImpl.java:876)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.WrapperManagerImpl.init(WrapperManagerImpl.java:328)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.WrapperManagerProxy.getWrapperManager(WrapperManagerProxy.java:53)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.AbstractWrapperJVMMain$1.run(AbstractWrapperJVMMain.java:64)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at java.security.AccessController.doPrivileged(Native Method)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.AbstractWrapperJVMMain.preExecute(AbstractWrapperJVMMain.java:56)
INFO|24298/0|Service traccar|19-04-29 15:56:03| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:41)
INFO|wrapper|Service traccar|19-04-29 15:56:04|waitpid 24298 59136
INFO|wrapper|Service traccar|19-04-29 15:56:04|exit code posix process: 59136 application(status/signal): 231/0
I would recommend to install the latest version.
error ????
root@ip-172-31-1-179:/home/admin# unzip traccar-linux-4.0.zip
Archive: traccar-linux-4.0.zip
replace traccar.run? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: traccar.run
replace README.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: README.txt
root@ip-172-31-1-179:/home/admin# unzip traccar-linux-64-4.4.zip
Archive: traccar-linux-64-4.4.zip
replace traccar.run? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: traccar.run y
replace README.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename:
inflating: README.txt
root@ip-172-31-1-179:/home/admin# ./traccar.run
Creating directory out
Verifying archive integrity... 100% All good.
Uncompressing traccar 100%
Failed to get D-Bus connection: Unknown error -1
Synchronizing state for traccar.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d traccar defaults
Executing /usr/sbin/update-rc.d traccar enable
root@ip-172-31-1-179:/home/admin#
new installed version of error
root@ip-172-31-1-179:/home/admin# unzip traccar-linux-64-4.4.zip
Archive: traccar-linux-64-4.4.zip
replace traccar.run? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: traccar.run
replace README.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: README.txt
root@ip-172-31-1-179:/home/admin# ./traccar.run
Creating directory out
Verifying archive integrity... 100% All good.
Uncompressing traccar 100%
Failed to get D-Bus connection: Unknown error -1
Synchronizing state for traccar.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d traccar defaults
Executing /usr/sbin/update-rc.d traccar enable
root@ip-172-31-1-179:/home/admin# cd /opt/traccar
root@ip-172-31-1-179:/opt/traccar# ls
bin conf data jre lib logs schema templates test.jar tmp tracker-server.jar web wrapperApp.jar wrapper.jar
root@ip-172-31-1-179:/opt/traccar# cd conf
root@ip-172-31-1-179:/opt/traccar/conf# ls
default.xml traccar.xml wrapper.conf wrapper.conf.default
root@ip-172-31-1-179:/opt/traccar/conf# nano traccar.xml
root@ip-172-31-1-179:/opt/traccar/conf# sudo systemctl start traccar.service
Failed to get D-Bus connection: Unknown error -1
root@ip-172-31-1-179:/opt/traccar/conf#
Looks like you need to fix your systemd
.
Have you tried starting it will the supplied startDaemon.sh script?
/opt/traccar/bin/startDaemon.sh
Never mind...if it won't install then you cant start it...
This:
Synchronizing state for traccar.service with sysvinit using update-rc.d...
Suggests to me that you may not have systemd installed. Perhaps check to see...
rpm -qa systemd*
Or use whatever package manager is available to your distro. If systemd is not installed the consider installing it.
yum install systemd-sysv
or,
apt install systemd-sysv
or, whatever package manager you use.
the update using
apt install systemd-sysv
only that it follows the same error
systemd-sysv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@ip-172-31-1-179:/home/admin# rpm -qa systemd*
bash: rpm: command not found
root@ip-172-31-1-179:/home/admin# sudo systemctl start traccar.service
Failed to get D-Bus connection: Unknown error -1
root@ip-172-31-1-179:/home/admin# systemctl start traccar.service
Failed to get D-Bus connection: Unknown error -1
root@ip-172-31-1-179:/home/admin#
root@ip-172-31-1-179:/home/admin# systemctl --version
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR
sudo /opt/traccar/bin/startDaemon.sh
nano wrapper.log.20190429
ARNING|wrapper|Service traccar|19-04-29 17:07:27|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|19-04-29 17:07:27|OS : Linux/3.16.0-4-amd64/amd64
WARNING|wrapper|Service traccar|19-04-29 17:07:27|JVM : Oracle Corporation/1.7.0_171//usr/lib/jvm/java-7-openjdk-amd64/jre/64
INFO|wrapper|Service traccar|19-04-29 17:07:27|exec:java -classpath /opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/commons-codec-1.11.jar:/opt/tracc$
INFO|wrapper|Service traccar|19-04-29 17:07:27|posix_spawn pid 6759
INFO|wrapper|Service traccar|19-04-29 17:07:28|started process 6759
INFO|wrapper|Service traccar|19-04-29 17:07:28|started process with pid 6759
INFO|6759/0|Service traccar|19-04-29 17:07:29|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|6759/0|Service traccar|19-04-29 17:07:29|java.lang.UnsupportedClassVersionError: org/traccar/Main : Unsupported major.minor version 52.0
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.lang.ClassLoader.defineClass1(Native Method)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
INFO|6759/0|Service traccar|19-04-29 17:07:29|no java main method found -> aborting
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.security.AccessController.doPrivileged(Native Method)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.WrapperManagerImpl.loadJar(WrapperManagerImpl.java:876)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.WrapperManagerImpl.init(WrapperManagerImpl.java:328)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.WrapperManagerProxy.getWrapperManager(WrapperManagerProxy.java:53)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.AbstractWrapperJVMMain$1.run(AbstractWrapperJVMMain.java:64)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at java.security.AccessController.doPrivileged(Native Method)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.AbstractWrapperJVMMain.preExecute(AbstractWrapperJVMMain.java:56)
INFO|6759/0|Service traccar|19-04-29 17:07:29| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:41)
INFO|wrapper|Service traccar|19-04-29 17:07:29|waitpid 6759 59136
INFO|wrapper|Service traccar|19-04-29 17:07:29|exit code posix process: 59136 application(status/signal): 231/0
How to know the version of the installed traccar
Archive: traccar-linux-64-4.4.zip
Didn't you download and install Traccar 4.4?
Perhaps you should delete the /opt/traccar directory and start over again.
I have always downloaded the installer to my windows pc to unzip, then uploaded the traccar.run file to an empty directory. Then, if i remember correctly, run it without root privileges to install.
When I start traccar I use the /opt/traccar/bin/startDaemon.sh script as a non privileged user. The text on-screen following that command will give good clues as to whether it started correctly or not.
If you are still getting the D-bus error I believe that, as Anton has stated, your systemd is not working correctly. You can Google the error and read many articles about that error.