What version of Traccar are you using? Also, what shell? It looks like a problem with Java Service Wrapper script.
Hi Anton,
Thanks for your reply. Do you have minute to look at my vps and install traccar by teamviewer?
Will be very appreciated. Sorry for my double post on the forum and github.
Regards,
Rob
I don't have time now, but I might have time to look tomorrow. Send me details by email please. Email address is on the support page or at the bottom of this page.
Hello,
I have the same problem: deamon don't start.
Here's details:
user@user-OptiPlex-GX520:~/Desktop$ sudo ./traccar.run Verifying archive integrity... All good. Uncompressing traccar 100% ./setup.sh: 5: [: -lt: unexpected operator Detected Ubuntu or Debian: The traccar daemon is already installed. user@user-OptiPlex-GX520:~/Desktop$ cd /opt/traccar/bin user@user-OptiPlex-GX520:/opt/traccar/bin$ sudo traccar start sudo: traccar: command not found user@user-OptiPlex-GX520:/opt/traccar/bin$ sudo /opy/traccar/bin/traccar start sudo: /opy/traccar/bin/traccar: command not found user@user-OptiPlex-GX520:/opt/traccar/bin$ sudo /opt/traccar/bin/traccar start Starting traccar... Waiting for traccar...................... WARNING: traccar may have failed to start.
Can you help me?
You need to check wrapper.log file for error message.
Here is part of latest logfile:
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | Advice:
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | Usually when the Wrapper fails to start the JVM process, it is because
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | of a problem with the value of the configured Java command. Currently:
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | wrapper.java.command=java
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | Please make sure that the PATH or any other referenced environment
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | variables are correctly defined for the current environment.
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | ------------------------------------------------------------------------
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper |
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
INFO | jvm 5 | 2016/01/14 11:18:30 | wrapper | Launching a JVM...
ADVICE | wrapper | 2016/01/14 11:18:30 |
ADVICE | wrapper | 2016/01/14 11:18:30 | ------------------------------------------------------------------------
ADVICE | wrapper | 2016/01/14 11:18:30 | Advice:
ADVICE | wrapper | 2016/01/14 11:18:30 | Usually when the Wrapper fails to start the JVM process, it is because
ADVICE | wrapper | 2016/01/14 11:18:30 | of a problem with the value of the configured Java command. Currently:
ADVICE | wrapper | 2016/01/14 11:18:30 | wrapper.java.command=java
ADVICE | wrapper | 2016/01/14 11:18:30 | Please make sure that the PATH or any other referenced environment
ADVICE | wrapper | 2016/01/14 11:18:30 | variables are correctly defined for the current environment.
ADVICE | wrapper | 2016/01/14 11:18:30 | ------------------------------------------------------------------------
ADVICE | wrapper | 2016/01/14 11:18:30 |
FATAL | wrapper | 2016/01/14 11:18:30 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2016/01/14 11:18:30 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2016/01/14 11:18:30 | <-- Wrapper Stopped
It looks like you don't have Java installed or path for Java is not set up correctly.
Ok. That helped! Now install is OK.
Thank you very much.
Hi, Anton!
I have the same issue:
user@user:~/traccar-server$ sudo /opt/traccar/bin/traccar start Starting traccar... /opt/traccar/bin/./wrapper: 1: /opt/traccar/bin/./wrapper: Syntax error: "(" unexpected Waiting for traccar.................. WARNING: traccar may have failed to start. server on ubuntu12 java -version gives: java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.12.04.2) OpenJDK Client VM (build 24.95-b01, mixed mode, sharing)
Ubuntu 12 is pretty old version. Also, what's the architecture of the system?
ohh, there is x64 cpu BUT x86 Ubuntu12 ))) I don't know why our admin made such strange config.
I will create a new instance with 'true' x64
thanks a lot for pushing me to the right way
everything is OK. sorry )
the problem was in installing x64 version on the x32 ubuntu.
Hi,
I get next error when starting the deamon.
sudo /opt/traccar/bin/traccar start
Starting traccar...
/opt/traccar/bin/./wrapper: 1: /opt/traccar/bin/./wrapper: Syntax error: "(" unexpected
Waiting for traccar..................
WARNING: traccar may have failed to start.
I'am running a vps with Ubuntu 14.04 LTS 64bit installed.
Who can help to solve this?
Regards,
Rob