Windows 7 Ultimate 64Bit Service stops randomly

Sathopper6 years ago

The Traccar Service is stopping randomly after about 2-3 days.
After a manual or PC restart it runs Ok again.

What is happening. It started with the previous version.
After updating to the latest version still the same problem.

Thanks,
Regards,
Pascal

Anton Tananaev6 years ago

Any time you have issues with server, first thing you should do is check logs. With the information you provided there is no way to tell you what is happening. It can be anything.

Also I would recommend to check optimization guide if you haven't done it yet.

Ernesto Vallejo6 years ago

As Anton once said, "You would have to provide much more information if you want some help."

Sathopper6 years ago

Hopefully wrapper.log can help if there are other log files wich can help let me know.

In between crashes the wrapper logs show the same messages:

INFO|3080/0|Service traccar|19-03-07 07:25:29|Missing wrapper ping within timeout of 30000
WARNING|3080/0|Service traccar|19-03-07 07:25:41|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|wrapper|Service traccar|19-03-07 07:25:44|calling onStop
INFO|wrapper|Service traccar|19-03-07 07:25:44|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|19-03-07 07:25:44|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|19-03-07 07:25:44|Win service stop - after shutdown
INFO|wrapper|Service traccar|19-03-07 07:25:44|Win service stop - before notify
INFO|wrapper|Service traccar|19-03-07 07:25:44|Win service terminated
Sathopper6 years ago

another wrapper logfile:

INFO|wrapper|Service traccar|19-02-28 17:31:10|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|19-02-28 17:31:16|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|19-02-28 17:31:16|stopping process with pid/timeout 18516 45000
INFO|18516/0|Service traccar|19-02-28 17:31:19|wrapper manager received stop command
WARNING|wrapper|Service traccar|19-02-28 17:42:28|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|19-02-28 17:42:28|OS   : Windows 7/6.1/amd64
WARNING|wrapper|Service traccar|19-02-28 17:42:28|JVM  : Oracle Corporation/1.8.0_181/C:\Program Files\Java\jre1.8.0_181/64
INFO|wrapper|Service traccar|19-02-28 17:42:29|start delay: 0
INFO|wrapper|Service traccar|19-02-28 17:42:30|started process with pid 2528
INFO|2528/0|Service traccar|19-02-28 17:42:47|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
Anton Tananaev6 years ago

Latest version doesn't have wrapper log.

Sathopper6 years ago

Hello Anton, strange I checked the Installer is the latest version. How can I check if this version is running?

Sathopper6 years ago

The server log after starting the service:

2019-03-14 10:16:53  INFO: HikariPool-1 - Starting...
2019-03-14 10:16:54  INFO: HikariPool-1 - Start completed.
2019-03-14 10:16:55  INFO: Clearing database change log checksums
2019-03-14 10:16:55  INFO: SELECT COUNT(*) FROM PUBLIC.DATABASECHANGELOGLOCK
...
2019-03-14 10:16:58  INFO: UPDATE PUBLIC.DATABASECHANGELOG SET MD5SUM = '8:b148f52efe9c6a3e74a56e33e257a3e2' WHERE ID = 'changelog-4.1-mssql' AND AUTHOR = 'author' AND FILENAME = 'changelog-4.1'
2019-03-14 10:16:58  INFO: SELECT COUNT(*) FROM PUBLIC.DATABASECHANGELOG
2019-03-14 10:16:58  INFO: Reading from PUBLIC.DATABASECHANGELOG
2019-03-14 10:16:58  INFO: SELECT * FROM PUBLIC.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2019-03-14 10:16:58  INFO: Successfully released change log lock
2019-03-14 10:16:58  INFO: Logging initialized @6115ms to org.eclipse.jetty.util.log.Slf4jLog
2019-03-14 10:16:59  INFO: Operating system name: Windows 7 version: 6.1 architecture: amd64
2019-03-14 10:16:59  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.181-b13
2019-03-14 10:16:59  INFO: Memory limit heap: 894mb non-heap: 0mb
2019-03-14 10:16:59  INFO: Character encoding: UTF-8 charset: UTF-8
2019-03-14 10:16:59  INFO: Version: 4.3-SNAPSHOT
2019-03-14 10:16:59  INFO: Starting server...
2019-03-14 10:17:00  WARN: Port 5004 is disabled due to conflict
2019-03-14 10:17:00  WARN: Port 5005 is disabled due to conflict
2019-03-14 10:17:00  INFO: jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 1.8.0_181-b13
2019-03-14 10:17:00  INFO: Started o.t.w.@2d119405{/,null,AVAILABLE}
2019-03-14 10:17:00  INFO: DefaultSessionIdManager workerName=node0
2019-03-14 10:17:00  INFO: No SessionScavenger set, using defaults
2019-03-14 10:17:00  INFO: node0 Scavenging every 660000ms
2019-03-14 10:17:01  INFO: Started o.e.j.s.ServletContextHandler@569348e1{/,null,AVAILABLE}
2019-03-14 10:17:01  INFO: Started ServerConnector@1d91fa02{HTTP/1.1,[http/1.1]}{0.0.0.0:8082}
2019-03-14 10:17:01  INFO: Started @9525ms
2019-03-14 10:17:05  INFO: [fc18249c] connected
Sathopper6 years ago

@Anton

How can you explain after installing version 4.4 today (Windows 64 bit) the wrapper.log.20190501 file is created?
As you explained before this should not be possible.
Thanks

Anton Tananaev6 years ago

It clearly means that you haven't installed it correctly.