WARNING: traccar may have failed to start.

KWESKOJ9 years ago

I followed the following instruction but after i get an error " WARNING: traccar may have failed to start."


  1. logged to amazon EC2 (centos 7 64bit) via putty (in my windows pc)

2)installed wget using below code
sudo yum install wget

  1. installed zip and unzip using below code
    sudo yum install zip unzip

  2. Installed java using below code
    sudo yum install java-1.7.0-openjdk

5)downloaded traccar using below code
wget https://github.com/tananaev/traccar/releases/download/v3.2/traccar-linux-64-3.2.zip

  1. unzipped the traccar using below code
    unzip traccar-linux-64-3.2.zip

8)run traccar.run file using below code
sudo ./traccar.run

9)start the daemon by using below code
sudo /opt/traccar/bin/traccar start

  1. if it shows traccar is running and one PID (port id) like below means, you’re Done
[centos@ip-172-31-59-xx ~]$ sudo /opt/traccar/bin/traccar start
Starting traccar…
Waiting for traccar……..
running: PID:2046

root@ip-50-62-35-47 [~]# /opt/traccar/bin/traccar console
Running traccar...
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 64-bit 3.5.27
wrapper  |   Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.com
wrapper  |
wrapper  | Launching a JVM...
jvm 1    | WrapperManager: Initializing...
wrapper  | JVM exited while loading the application.
...
wrapper  | JVM exited while loading the application.
jvm 5    | Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre/lib/amd64/libnio.so: libgconf-2.so.4: cannot open shared object file: No such file or directory
jvm 5    |      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
jvm 5    |      at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
jvm 5    |      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
jvm 5    |      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
jvm 5    |      at java.lang.Runtime.loadLibrary0(Runtime.java:849)
jvm 5    |      at java.lang.System.loadLibrary(System.java:1088)
jvm 5    |      at sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:561)
jvm 5    |      at sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:559)
jvm 5    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |      at sun.nio.fs.UnixNativeDispatcher.<clinit>(UnixNativeDispatcher.java:559)
jvm 5    |      at sun.nio.fs.UnixFileSystem.<init>(UnixFileSystem.java:67)
jvm 5    |      at sun.nio.fs.LinuxFileSystem.<init>(LinuxFileSystem.java:39)
jvm 5    |      at sun.nio.fs.LinuxFileSystemProvider.newFileSystem(LinuxFileSystemProvider.java:44)
jvm 5    |      at sun.nio.fs.LinuxFileSystemProvider.newFileSystem(LinuxFileSystemProvider.java:37)
jvm 5    |      at sun.nio.fs.UnixFileSystemProvider.<init>(UnixFileSystemProvider.java:56)
jvm 5    |      at sun.nio.fs.LinuxFileSystemProvider.<init>(LinuxFileSystemProvider.java:39)
jvm 5    |      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jvm 5    |      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
jvm 5    |      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
jvm 5    |      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
jvm 5    |      at java.lang.Class.newInstance(Class.java:383)
jvm 5    |      at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:52)
jvm 5    |      at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:43)
jvm 5    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |      at sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:42)
jvm 5    |      at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:70)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
jvm 5    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:95)
jvm 5    |      at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)
jvm 5    |      at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
jvm 5    |      at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:490)
jvm 5    |      at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:481)
jvm 5    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |      at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:480)
jvm 5    |      at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)
jvm 5    |      at java.util.TimeZone.getTimeZone(TimeZone.java:566)
jvm 5    |      at java.util.TimeZone.setDefaultZone(TimeZone.java:663)
jvm 5    |      at java.util.TimeZone.getDefaultRef(TimeZone.java:630)
jvm 5    |      at java.util.Calendar.getInstance(Calendar.java:968)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperInfo.<clinit>(WrapperInfo.java:49)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperManager.verifyWrapperVersion(WrapperManager.java:1758)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperManager.privilegedClassInit(WrapperManager.java:629)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperManager.access$000(WrapperManager.java:125)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperManager$1.run(WrapperManager.java:494)
jvm 5    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperManager.<clinit>(WrapperManager.java:491)
jvm 5    |      at java.lang.Class.forName0(Native Method)
jvm 5    |      at java.lang.Class.forName(Class.java:195)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(WrapperSimpleApp.java:165)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:165)
jvm 5    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.main(WrapperSimpleApp.java:624)
wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- Wrapper Stopped
root@ip-50-62-35-47 [~]#

Please Help

Anton Tananaev9 years ago

There is some problem with your Java runtime.

KWESKOJ9 years ago

Thankx. i re ]installed the Java and everything is okay. i have some few questions;

1:how to stop user from registering by them selfs
2:how to customize the logo.
3:why can you get to choose a car icon when adding a device.

I run a VPS Centos. let me know more about these even if there some

Thank you.

Anton Tananaev9 years ago
  1. Disable registration in server settings
  2. Replace image files in the web folder
  3. You cannot
KWESKOJ9 years ago

whats the different between yours and http://traccar.litvak.su/features/
that looks very packed and feature rich

Anton Tananaev9 years ago

It does have more features than default UI at this point.

charlymanja9 years ago

Openjdk works fine to me
$ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (fedora-2.4.3.0.fc18-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

The problem is the libgconf-2.so.4 file (not exists) You should try to install it!

yum install GConf2

$ rpm -ql GConf2 | grep libgconf-2.so.4
/usr/lib64/libgconf-2.so.4

Anton Tananaev9 years ago

@charlymanja, you are a bit late with your comment. Java problem is already solved.

charlymanja9 years ago

@Anton you are correct, it seems I don't read all messages, sorry!

KWESKOJ9 years ago

So can you work on your version to be feature rich like his? or i can go ahead and install his Traccar-web. i need a solution asap and donation is for sure.

KWESKOJ9 years ago

you are doing a good job.

Anton Tananaev9 years ago

I am working on adding more features. In the meanwhile I can install alternative UI if you are interested. Send me an email with details.

KWESKOJ9 years ago

whats your email address.

Anton Tananaev9 years ago

You can find it on the Support page:

https://www.traccar.org/support/

KWESKOJ9 years ago

How do i upgrade to Traccar-web http://traccar.litvak.su/features/