Struggling with new server - keeps stopping

Pieter du Preez7 years ago

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:

2017-08-28 09:40:25 DEBUG: [4CF4EFC8: 5055 < 105.8.7.144] HEX: 474554202f3f69643d3834363236362674696d657374616d703d31353033393035393931266c61743d2d32362e363437373732373533373939343736266c6f6e3d32372e39373137383$
2017-08-28 09:40:25 DEBUG: [4CF4EFC8: 5055 > 105.8.7.144] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-08-28 09:40:25  INFO: Shutting down server...
2017-08-28 09:40:25  INFO: [BF8FBA96] disconnected
2017-08-28 09:40:25  INFO: [BCB288E0] disconnected
2017-08-28 09:40:25  WARN: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-196] - JdbcSQLException (... < QueryBuilder:63 < *:130 < D$
2017-08-28 09:40:25  INFO: [87B7BFB0] disconnected
2017-08-28 09:40:26  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-08-28 09:40:25  INFO: [98F834E6] disconnected
2017-08-28 09:40:25  INFO: [4CF4EFC8] disconnected
2017-08-28 09:40:25  INFO: [4BBBA0C0] disconnected
2017-08-28 09:40:26  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-08-28 09:40:26  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)

and in the wrapper log I see:

INFO|4972/0|Service traccar|17-08-28 00:02:47|Missing wrapper ping within timeout of 30000
WARNING|4972/0|Service traccar|17-08-28 00:04:03|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|4972/0|Service traccar|17-08-28 00:04:03|wrapper manager received stop command
INFO|4972/0|Service traccar|17-08-28 00:04:03|[HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=2m16s198ms899µs63ns).
INFO|4972/0|Service traccar|17-08-28 00:04:03|[Thread-13] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@3c952a33{HTTP/1.1}{0.0.0.0:8082}
INFO|4972/0|Service traccar|17-08-28 00:04:03|[Thread-13] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@1f87607c{/api,null,UNAVAILABLE}
WARNING|wrapper|Service traccar|17-08-28 09:08:41|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-08-28 09:08:41|OS   : Linux/4.4.0-92-generic/amd64
WARNING|wrapper|Service traccar|17-08-28 09:08:41|JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
INFO|wrapper|Service traccar|17-08-28 09:08:42|exec:"java" "-classpath" "/opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-2.9.9.jar:/opt/traccar/lib/h2-1.4.196.jar:/opt/traccar/lib/mysql-connector-java-5.1.42.jar:/opt/traccar/lib/postgresql-42.$
INFO|wrapper|Service traccar|17-08-28 09:08:42|posix_spawn pid 17149
INFO|wrapper|Service traccar|17-08-28 09:08:42|started process 17149
INFO|wrapper|Service traccar|17-08-28 09:08:42|started process with pid 17149
WARNING|17149/0|Service traccar|17-08-28 09:09:12|startup of java application timed out. if this is due to server overload consider increasing wrapper.startup.timeout
INFO|17149/0|Service traccar|17-08-28 09:09:13|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|17149/0|Service traccar|17-08-28 09:09:16|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
WARNING|wrapper|Service traccar|17-08-28 09:25:47|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-08-28 09:25:47|OS   : Linux/4.4.0-92-generic/amd64
WARNING|wrapper|Service traccar|17-08-28 09:25:47|JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
INFO|wrapper|Service traccar|17-08-28 09:25:48|exec:"java" "-classpath" "/opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-2.9.9.jar:/opt/traccar/lib/h2-1.4.196.jar:/opt/traccar/lib/mysql-connector-java-5.1.42.jar:/opt/traccar/lib/postgresql-42.$
INFO|wrapper|Service traccar|17-08-28 09:25:48|posix_spawn pid 17822
INFO|wrapper|Service traccar|17-08-28 09:25:48|started process 17822
INFO|wrapper|Service traccar|17-08-28 09:25:48|started process with pid 17822
INFO|17822/0|Service traccar|17-08-28 09:25:49|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|17822/0|Service traccar|17-08-28 09:25:52|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
INFO|17822/0|Service traccar|17-08-28 09:25:53|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO|17822/0|Service traccar|17-08-28 09:25:53|INFO 8/28/17 9:25 AM: liquibase: Clearing database change log checksums
INFO|17822/0|Service traccar|17-08-28 09:25:53|INFO 8/28/17 9:25 AM: liquibase: Successfully acquired change log lock
INFO|17822/0|Service traccar|17-08-28 09:25:53|INFO 8/28/17 9:25 AM: liquibase: Successfully released change log lock
INFO|17822/0|Service traccar|17-08-28 09:25:53|INFO 8/28/17 9:25 AM: liquibase: Successfully acquired change log lock
INFO|17822/0|Service traccar|17-08-28 09:25:54|INFO 8/28/17 9:25 AM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|17822/0|Service traccar|17-08-28 09:25:55|INFO 8/28/17 9:25 AM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|17822/0|Service traccar|17-08-28 09:25:55|INFO 8/28/17 9:25 AM: 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: Constraint "UK_USER_TOKEN" not found; SQL st$
INFO|17822/0|Service traccar|17-08-28 09:25:55|ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token [90057-196] [Failed SQL: ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token]
INFO|17822/0|Service traccar|17-08-28 09:25:55|INFO 8/28/17 9:25 AM: liquibase: Successfully released change log lock
INFO|17822/0|Service traccar|17-08-28 09:25:55|[main] INFO org.eclipse.jetty.util.log - Logging initialized @6661ms
INFO|17822/0|Service traccar|17-08-28 09:25:56|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.22.v20170606
INFO|17822/0|Service traccar|17-08-28 09:25:57|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@1f87607c{/api,null,AVAILABLE}
INFO|17822/0|Service traccar|17-08-28 09:25:57|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@3c952a33{HTTP/1.1}{0.0.0.0:8082}
INFO|17822/0|Service traccar|17-08-28 09:25:57|[main] INFO org.eclipse.jetty.server.Server - Started @8987ms
INFO|17822/0|Service traccar|17-08-28 09:40:22|Missing wrapper ping within timeout of 30000
WARNING|17822/0|Service traccar|17-08-28 09:40:25|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|17822/0|Service traccar|17-08-28 09:40:25|wrapper manager received stop command
INFO|17822/0|Service traccar|17-08-28 09:40:25|[HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1m1s971ms811µs784ns).
INFO|17822/0|Service traccar|17-08-28 09:40:25|[Thread-13] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@3c952a33{HTTP/1.1}{0.0.0.0:8082}
INFO|17822/0|Service traccar|17-08-28 09:40:25|[Thread-13] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@1f87607c{/api,null,UNAVAILABLE}
INFO|wrapper|Service traccar|17-08-28 09:40:27|waitpid 17822 0
INFO|wrapper|Service traccar|17-08-28 09:40:27|exit code posix process: 0 application: 0

I also see the following on start-up:

pdupreez@htpc:/opt/traccar/logs$ sudo ../bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, 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/4.4.0-92-generic/amd64
JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
Aug 28, 2017 9:25:41 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Aug 28, 2017 9:25:42 AM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************

Aug 28, 2017 9:25:42 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:25:51 AM org.rzo.yajsw.os.posix.PosixService start
INFO: 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/4.4.0-92-generic/amd64
JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
************* STARTING traccar ***********************

Service traccar started

Aug 28, 2017 9:25:51 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:25:52 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:25:52 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started
pdupreez@htpc:/opt/traccar/logs$ sudo nano tracker-server.log
pdupreez@htpc:/opt/traccar/logs$ sudo nano tracker-server.log
pdupreez@htpc:/opt/traccar/logs$ sudo nano tracker-server.log
[sudo] password for pdupreez:
pdupreez@htpc:/opt/traccar/logs$ ls
stracker-server.log  tracker-server.log.20170827  wrapper.log.20170827  wrapper.log.20170828  wrapper.log.20170828.lck
pdupreez@htpc:/opt/traccar/logs$ sudo nano wrapper.log.20170828
[sudo] password for pdupreez:
pdupreez@htpc:/opt/traccar/logs$ sudo ../bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, 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/4.4.0-92-generic/amd64
JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
Aug 28, 2017 9:58:40 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Aug 28, 2017 9:58:42 AM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************

Aug 28, 2017 9:58:42 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:58:45 AM org.rzo.yajsw.os.posix.PosixService start
INFO: 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/4.4.0-92-generic/amd64
JVM  : Oracle Corporation/1.8.0_144//usr/lib/jvm/java-8-oracle/jre/64
************* STARTING traccar ***********************

Service traccar started

Aug 28, 2017 9:58:45 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:58:46 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 28, 2017 9:58:46 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started

Any support will be appreciated

Anton Tananaev7 years ago

Looks like your server has timed out. Usually it indicates lack of resources.

Pieter du Preez7 years ago

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
Anton Tananaev7 years ago

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.

Pieter du Preez7 years ago

Thank you Anton, I will dedicate a RPi 3 for the job. Do you think that will be adequate for the task?

Anton Tananaev7 years ago

You need at least 1GB of RAM.

eric rivas7 years ago

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&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;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...

Anton Tananaev7 years ago

Are you sure you don't have anything else on that server?

eric rivas7 years ago

Like What, I use it like an OpenVPN Server, do you mean that ?

Anton Tananaev7 years ago

I mean how much free resources do you have on the server.

eric rivas7 years ago
[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
Anton Tananaev7 years ago

Then the issue must be somewhere else. You can try to run Traccar manually without service wrapper and see if solves the problem.

eric rivas7 years ago

How to achieve that ?

Anton Tananaev7 years ago
eric rivas7 years ago
[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]#