code=exited, status=1/FAILURE

Running traccar on RPI since April or so and working fine. Was away for a month and after returning this week noticed GPS tracker events had stopped being recorded by traccar like 3 weeks before. Trying to reference older data (traccar report) resulted in an error popup in the browser of which I unfortunately did not make a screen shot.
First tested the GPS tracker using SMS interface. Works fine.
I then stopped/restarted traccar and also poweroff/rebooted RPI with the (consistent, traccar does not start anymore) following results:

pi@RPI:~ $ sudo systemctl status traccar.service
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-06-20 17:18:07 CEST; 23min ago
 Main PID: 388 (java)
   CGroup: /system.slice/traccar.service
           └─388 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml

jun 20 17:18:07 RPI systemd[1]: Started traccar.
jun 20 17:30:50 RPI traccar[388]: WARNING: An illegal reflective access operation has occurred
jun 20 17:30:50 RPI traccar[388]: WARNING: Illegal reflective access by com.google.inject.internal.cgl
jun 20 17:30:50 RPI traccar[388]: WARNING: Please consider reporting this to the maintainers of com.go
jun 20 17:30:50 RPI traccar[388]: WARNING: Use --illegal-access=warn to enable warnings of further ill
jun 20 17:30:50 RPI traccar[388]: WARNING: All illegal access operations will be denied in a future re

pi@RPI:~ $ sudo systemctl stop traccar.service
pi@RPI:~ $ sudo systemctl start traccar.service
pi@RPI:~ $ sudo systemctl status traccar.service
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-06-20 18:45:35 CEST; 6s ago
  Process: 1646 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, stat
 Main PID: 1646 (code=exited, status=1/FAILURE)

jun 20 18:45:35 RPI traccar[1646]:         at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:2
jun 20 18:45:35 RPI traccar[1646]:         at java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
jun 20 18:45:35 RPI traccar[1646]:         at java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.jav
jun 20 18:45:35 RPI traccar[1646]:         at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:
jun 20 18:45:35 RPI traccar[1646]:         at java.base/java.io.BufferedWriter.flush(BufferedWriter.java:256)
jun 20 18:45:35 RPI traccar[1646]:         at org.traccar.helper.Log$RollingFileHandler.publish(Log.java:79)
jun 20 18:45:35 RPI traccar[1646]:         ... 5 more
jun 20 18:45:35 RPI systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
jun 20 18:45:35 RPI systemd[1]: traccar.service: Unit entered failed state.
jun 20 18:45:35 RPI systemd[1]: traccar.service: Failed with result 'exit-code'.
lines 1-16/16 (END)

Maybe the "illegal operation....." is a result of the requested report of data before traccar stopped recording? I'm a linux novice and in the dark......

Anton Tananaev5 years ago

You need to check full stack trace.

Like I said, I'm a Linux novice. Somewhere on the forum I found a reference to this file: traccar-server.log. I then executed the following command on the rpi: sudo find / -name traccar-server.log. Which resulted in nothing.

How can I display the full stack trace?

Anton Tananaev5 years ago

If there is no log file, try to run the server manually and see if there's an exception.

Remembered some basics :-).....

pi@RPI:/var/log $ cat syslog | grep traccar
Jun 20 17:18:07 RPI systemd[1]: Started traccar.
Jun 20 17:30:50 RPI traccar[388]: WARNING: An illegal reflective access operation has occurred
Jun 20 17:30:50 RPI traccar[388]: WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/opt/traccar/lib/guice-4.2.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
Jun 20 17:30:50 RPI traccar[388]: WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
Jun 20 17:30:50 RPI traccar[388]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jun 20 17:30:50 RPI traccar[388]: WARNING: All illegal access operations will be denied in a future release
Jun 20 17:47:16 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-4"
Jun 20 17:56:44 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-5"
Jun 20 17:56:58 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-6"
Jun 20 17:57:10 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-7"
Jun 20 17:57:16 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-8"
Jun 20 17:57:28 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-1"
Jun 20 17:57:40 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-2"
Jun 20 17:57:45 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-3-3"
Jun 20 17:57:58 RPI traccar[388]: Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in threaJun 20 18:46:18 RPI liblogging-stdlog: action 'action 0' resumed (module 'builtin:omfile') [v8.24.0 try http://www.rsyslog.com/e/2359 ]
Jun 20 18:46:58 RPI systemd[1]: Started traccar.
Jun 20 18:46:58 RPI traccar[1689]: OpenJDK Server VM warning: Insufficient space for shared memory file:
Jun 20 18:46:58 RPI traccar[1689]:    1689
Jun 20 18:46:58 RPI traccar[1689]: Try using the -Djava.io.tmpdir= option to select an alternate temp location.
Jun 20 18:47:01 RPI traccar[1689]: Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Geen ruimte meer over op apparaat
Jun 20 18:47:01 RPI traccar[1689]: #011at org.traccar.helper.Log$RollingFileHandler.publish(Log.java:81)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.logging/java.util.logging.Logger.log(Logger.java:979)
Jun 20 18:47:01 RPI traccar[1689]: #011at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:582)
Jun 20 18:47:01 RPI traccar[1689]: #011at org.slf4j.impl.JDK14LoggerAdapter.error(JDK14LoggerAdapter.java:559)
Jun 20 18:47:01 RPI traccar[1689]: #011at org.traccar.Main.run(Main.java:151)
Jun 20 18:47:01 RPI traccar[1689]: #011at org.traccar.Main.main(Main.java:104)
Jun 20 18:47:01 RPI traccar[1689]: Caused by: java.io.IOException: Geen ruimte meer over op apparaat
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/java.io.FileOutputStream.writeBytes(Native Method)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:233)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:303)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:281)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:211)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120)
Jun 20 18:47:01 RPI traccar[1689]: #011at java.base/java.io.BufferedWriter.flush(BufferedWriter.java:256)
Jun 20 18:47:01 RPI traccar[1689]: #011at org.traccar.helper.Log$RollingFileHandler.publish(Log.java:79)
Jun 20 18:47:01 RPI traccar[1689]: #011... 5 more
Jun 20 18:47:01 RPI systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Jun 20 18:47:01 RPI systemd[1]: traccar.service: Unit entered failed state.
Jun 20 18:47:01 RPI systemd[1]: traccar.service: Failed with result 'exit-code'.
pi@RPI:/var/log $

Doest his help?

Anton Tananaev5 years ago

Have you checked it yourself?

Don't know why the format changes after submitting. It looks nicely structured when I paste it.

Anyway, when I scanned through it I found a line in Dutch "Geen ruimte meer op apparaat", or "no more space on device".

I guess my GPS tracker 10sec interval filled up my RPi's SD card? Is there some wrap-around or auto-delete functionality to delete everuthing older than say 2 months?

Thanks.

I found a config key database.historyDays which I set to 90 (<entry key='database.historyDays'>90</entry>).

In addition I deleted a number of old syslog, messages and auth log files.

Rebooted, but still the same result. Should/can I remove something directly related to traccar?

I used Link name to move and expand.

Murthy Varanasi4 years ago

Traccar doesnt start any help pls

traccar.service - traccar
     Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2020-10-27 07:20:08 UTC; 3s ago
    Process: 1351 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FA>
   Main PID: 1351 (code=exited, status=1/FAILURE)

Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.Parser.pi(Parser.java:159>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.Parser.step(Parser.java:3>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.impl.SAXParserImpl.parse(SAXPa>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.load(>
Oct 27 07:20:08 ip-172-31-46-91 traccar[1351]:         ... 5 more
Oct 27 07:20:08 ip-172-31-46-91 systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Oct 27 07:20:08 ip-172-31-46-91 systemd[1]: traccar.service: Failed with result 'exit-code'.
Anton Tananaev4 years ago

You have invalid XML in the config file.

Alex2 years ago

Hello!
I try to start "service traccar start"

And got the

Loaded: loaded (/etc/systemd/sgstem/traccar.service: enabled: vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Hed 2021-11-17 14:03:10 UTC: as ago
Process: 32609 ExecStart=/opt/traccar/Jrelb1n/Java -Jar tracker-server.Jar conf/traccar.xm1 L:_--
Main PID: 32609 (code=ex1ted, status=1/FAILURE)

My config

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>


<properties>
    <entry key='config.default'>./conf/default.xml</entry>
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>traccar_user</entry>
    <entry key='database.password'>7rights</entry>
</properties>
Anton Tananaev2 years ago

Don't see how this is related to the topic. And also what's the error?