Traccar stopping after a week

Kjetil Pedersen7 years ago

Traccar server is crashing after one week online.
Any ideas?

root@traccar:~# service traccar status
 traccar.service - LSB: yajsw wrapper for Traccar
   Loaded: loaded (/etc/init.d/traccar; bad; vendor preset: enabled)
   Active: inactive (dead) since Tue 2017-11-21 14:26:28 UTC; 7h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31878 ExecStop=/etc/init.d/traccar stop (code=exited, status=0/SUCCESS)
 Main PID: 1889 (code=exited, status=0/SUCCESS)

Nov 21 14:26:28 traccar traccar[31878]: ************* STOPPING traccar ***********************
Nov 21 14:26:28 traccar traccar[31878]: Nov 21, 2017 2:26:28 PM org.rzo.yajsw.os.posix.PosixService getPid
Nov 21 14:26:28 traccar traccar[31878]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 21 14:26:28 traccar traccar[31878]: Nov 21, 2017 2:26:28 PM org.rzo.yajsw.os.posix.PosixService stopProcess
Nov 21 14:26:28 traccar traccar[31878]: INFO: stop daemon with pid 1889
Nov 21 14:26:28 traccar traccar[31878]: Nov 21, 2017 2:26:28 PM org.rzo.yajsw.os.posix.PosixService stopProcess
Nov 21 14:26:28 traccar traccar[31878]: INFO: process not running
Nov 21 14:26:28 traccar traccar[31878]: Nov 21, 2017 2:26:28 PM org.rzo.yajsw.os.posix.PosixService getPid
Nov 21 14:26:28 traccar traccar[31878]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 21 14:26:28 traccar traccar[31878]: Service traccar stopped
Anton Tananaev7 years ago

Have you checked logs before asking for help?

Kjetil Pedersen7 years ago

Yes.
Nothing useful.

2017-11-21 14:23:39  INFO: [FD8FC673] connected
2017-11-21 14:23:41 DEBUG: [FD8FC673: 5027 < 46.230.129.86] HEX: **
2017-11-21 14:23:41 DEBUG: [FD8FC673: 5027 > 46.230.129.86] HEX: 01
2017-11-21 14:23:44 DEBUG: [FD8FC673: 5027 < 46.230.129.86] HEX: *                                                                                                                                                                                                                                         e01f100005e8a00010000cb1f
2017-11-21 14:23:44 DEBUG: [FD8FC673: 5027 > 46.230.129.86] HEX: 00000001
2017-11-21 14:23:44  INFO: [FD8FC673] id: 3*, time: 2017-11-21 14:14:25, lat: **, lon: **, speed: 0.0, course: 0.0
2017-11-21 14:23:48  INFO: [FD8FC673] disconnected
2017-11-21 14:25:00  INFO: [74124B23] disconnected
Anton Tananaev7 years ago

That's because you are looking at the wrong log file.

Kjetil Pedersen7 years ago

Maybe if you can help me with the correct file, I'll figure out the problem?

Anton Tananaev7 years ago

Well, there are only 2 logs files.

Kjetil Pedersen7 years ago
cat /opt/traccar/logs/wrapper.log.20171121
INFO|wrapper|Service traccar|17-11-21 14:26:15|waitpid 1904 9
INFO|wrapper|Service traccar|17-11-21 14:26:16|exit code posix process: 9 application: 0
Anton Tananaev7 years ago