Looks like your server has timed out. Usually it indicates lack of resources.
Thank you.
Is there a way to extend the timeout period?
Anything I can do to fix these errors:
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
You can extend timeout in wrapper config, but I don't think it would solve the problem.
As for the "lib not found" logs, you can safely ignore them.
Thank you Anton, I will dedicate a RPi 3 for the job. Do you think that will be adequate for the task?
You need at least 1GB of RAM.
How about 2GB RAM server, with "wrapper.java.maxmemory=768" still shutting down ? Same error "clock heap, starvation....... " Google Geocode requests between daily limits (1.400). centos 6 vps, great bandwith and resources. Testing server with only two devices, the server shuts down around 20 or 24 hours working....
wrapper.conf
wrapper.java.command=java
wrapper.java.app.jar=tracker-server.jar
wrapper.java.maxmemory=1024
wrapper.app.parameter.1=./conf/traccar.xml
wrapper.java.additional.1=-Dfile.encoding=UTF-8
wrapper.logfile=logs/wrapper.log.YYYYMMDD
wrapper.logfile.rollmode=DATE
wrapper.ntservice.name=traccar
wrapper.ntservice.displayname=Traccar
wrapper.ntservice.description=Traccar
wrapper.daemon.run_level_dir=${if (new File('/etc/rc0.d').exists()) return '/etc/rcX.d' else return '/etc/init.d/rcX.d'}
traccar.xml
<entry key="config.default">./conf/default.xml</entry>
( database connection changed, but it connects ok ;) )
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/DATABASE_NAME?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>MY_USER_NAME</entry>
<entry key='database.password'>MY_PASSWORD</entry>
default.xml
<entry key='web.enable'>true</entry>
<entry key='web.port'>8092</entry>
<entry key='web.path'>./web</entry>
<entry key='web.cacheControl'>max-age=3600,public</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>
<entry key='geocoder.key'>MY_Google_Keys_Works_OK_And_Shows_Traffic_In_API_Control_Panel</entry>
<entry key='logger.enable'>true</entry>
<entry key='logger.level'>all</entry>
<entry key='logger.file'>./logs/tracker-server.log</entry>
<entry key='event.enable'>true</entry>
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='media.path'>./media</entry>
part of traccker-server.log
2017-12-07 02:25:44 INFO: [2542A366] connected
2017-12-07 02:25:44 DEBUG: [2542A366: 5001 < 190.104.176.63] HEX: 23232c696d65693a3836383638333032343634303037342c413b
2017-12-07 02:25:45 DEBUG: [2542A366: 5001 > 190.104.176.63] HEX: 4c4f4144
2017-12-07 02:26:42 INFO: [8CB836C6] connected
2017-12-07 02:26:42 DEBUG: [8CB836C6: 5001 < 190.104.176.236] HEX: 23232c696d65693a3836383638333032343634303037342c413b
2017-12-07 02:26:42 DEBUG: [8CB836C6: 5001 > 190.104.176.236] HEX: 4c4f4144
2017-12-07 02:26:45 INFO: Shutting down server...
2017-12-07 02:27:36 INFO: [3EF7213D] disconnected
2017-12-07 02:27:36 INFO: [4A878DBA] disconnected
2017-12-07 02:27:36 INFO: [3D67D3FD] disconnected
2017-12-07 02:27:37 INFO: [A2535C14] connected
2017-12-07 02:27:37 DEBUG: [A2535C14: 5001 < 190.104.131.250] HEX: 23232c696d65693a3836383638333032343634303037342c413b
2017-12-07 02:27:37 DEBUG: [A2535C14: 5001 > 190.104.131.250] HEX: 4c4f4144
2017-12-07 02:27:47 INFO: [7E2DE374] disconnected
2017-12-07 02:27:47 INFO: [F66BBD02] disconnected
2017-12-07 02:27:47 INFO: [34C8D6DC] disconnected
2017-12-07 02:27:47 INFO: [7078E3AA] disconnected
2017-12-07 02:27:47 INFO: [C52A88F1] disconnected
2017-12-07 02:27:47 INFO: [3EFA302C] disconnected
2017-12-07 02:27:48 INFO: [4FB1B931] disconnected
2017-12-07 02:27:48 INFO: [9C95ED68] disconnected
2017-12-07 02:27:48 INFO: [F133D40E] disconnected
[root@gf1 logs]# vim wrapper.log.20171207
INFO|5962/0|Service traccar|17-12-07 02:26:07|Missing wrapper ping within timeout of 30000
WARNING|5962/0|Service traccar|17-12-07 02:26:34|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|5962/0|Service traccar|17-12-07 02:26:42|wrapper manager received stop command
WARNING|wrapper|Service traccar|17-12-07 07:12:19|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-12-07 07:12:19|OS : Linux/2.6.32-042stab123.2/amd64
WARNING|wrapper|Service traccar|17-12-07 07:12:19|JVM : Oracle Corporation/1.7.0_161//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64/jre/64
SO .... When I start the server .....
[root@gf1 logs]# sudo /opt/traccar/bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
java version "1.7.0_161"
OpenJDK Runtime Environment (rhel-2.6.12.0.el6_9-x86_64 u161-b00)
OpenJDK 64-Bit Server VM (build 24.161-b00, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.7.0_161"
OpenJDK Runtime Environment (rhel-2.6.12.0.el6_9-x86_64 u161-b00)
OpenJDK 64-Bit Server VM (build 24.161-b00, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.7.0_161"
OpenJDK Runtime Environment (rhel-2.6.12.0.el6_9-x86_64 u161-b00)
OpenJDK 64-Bit Server VM (build 24.161-b00, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.7.0_161"
OpenJDK Runtime Environment (rhel-2.6.12.0.el6_9-x86_64 u161-b00)
OpenJDK 64-Bit Server VM (build 24.161-b00, mixed mode)
---------- YAJSW SET ENV ----------
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
YAJSW: yajsw-stable-12.09
OS : Linux/2.6.32-042stab123.2/amd64
JVM : Oracle Corporation/1.7.0_161//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64/jre/64
dic 07, 2017 9:13:45 AM org.apache.commons.vfs2.VfsLog info
INFORMACIÓN: Using "/tmp/vfs_cache" as temporary files store.
dic 07, 2017 9:13:46 AM org.rzo.yajsw.os.posix.PosixService init
INFORMACIÓN: /etc/init.d/traccar already exists
************* STARTING traccar ***********************
dic 07, 2017 9:13:46 AM org.rzo.yajsw.os.posix.PosixService getPid
INFORMACIÓN: wrapper pid file: /var/run/wrapper.traccar.pid
dic 07, 2017 9:13:49 AM org.rzo.yajsw.os.posix.PosixService start
INFORMACIÓN: Starting traccar ...
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
YAJSW: yajsw-stable-12.09
OS : Linux/2.6.32-042stab123.2/amd64
JVM : Oracle Corporation/1.7.0_161//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64/jre/64
************* STARTING traccar ***********************
Service traccar started
dic 07, 2017 9:13:49 AM org.rzo.yajsw.os.posix.PosixService getPid
INFORMACIÓN: wrapper pid file: /var/run/wrapper.traccar.pid
dic 07, 2017 9:13:50 AM org.rzo.yajsw.os.posix.PosixService getPid
INFORMACIÓN: wrapper pid file: /var/run/wrapper.traccar.pid
dic 07, 2017 9:13:51 AM org.rzo.yajsw.os.posix.PosixService getPid
INFORMACIÓN: wrapper pid file: /var/run/wrapper.traccar.pid
Service traccar started
I think it's safe to ignore, those 4 "lib not found" warnings...
Are you sure you don't have anything else on that server?
Like What, I use it like an OpenVPN Server, do you mean that ?
I mean how much free resources do you have on the server.
[root@gf1 ~]# free -m
total used free shared buffers cached
Mem: 2048 295 1752 3 0 27
-/+ buffers/cache: 267 1780
Swap: 2048 252 1795
Then the issue must be somewhere else. You can try to run Traccar manually without service wrapper and see if solves the problem.
How to achieve that ?
Read documentation:
[root@gf1 traccar]# java -jar tracker-server.jar conf/traccar.xml
[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO 12/7/17 4:58 PM: liquibase: Clearing database change log checksums
INFO 12/7/17 4:58 PM: liquibase: Successfully acquired change log lock
INFO 12/7/17 4:58 PM: liquibase: Successfully released change log lock
INFO 12/7/17 4:58 PM: liquibase: Successfully acquired change log lock
INFO 12/7/17 4:58 PM: liquibase: Reading from gps_01.DATABASECHANGELOG
INFO 12/7/17 4:58 PM: liquibase: Reading from gps_01.DATABASECHANGELOG
INFO 12/7/17 4:58 PM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false. Error: Can't DROP 'uk_user_token'; check that column/key exists [Failed SQL: ALTER TABLE gps_01.users DROP KEY uk_user_token]
INFO 12/7/17 4:58 PM: liquibase: Successfully released change log lock
[main] INFO org.eclipse.jetty.util.log - Logging initialized @48636ms
[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.22.v20170606
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@172e21fe{/api,null,AVAILABLE}
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.t.w.@764a6b8e{/,null,AVAILABLE}
[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@f49ce7c{HTTP/1.1}{0.0.0.0:8092}
[main] INFO org.eclipse.jetty.server.Server - Started @59387ms
^C[Thread-11] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@f49ce7c{HTTP/1.1}{0.0.0.0:8092}
[Thread-11] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.t.w.@764a6b8e{/,null,UNAVAILABLE}
[Thread-11] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@172e21fe{/api,null,UNAVAILABLE}
[root@gf1 traccar]#
I have recently installed Traccar to test a TK206 device. It works well when it works, but I find that it fails on a regular basis, without any clear reason. I am running on an Ubuntu VM, 6 core i7, 6GB ram.
In the logs I see this:
and in the wrapper log I see:
I also see the following on start-up:
Any support will be appreciated