shutdown

beryindo8 years ago

why tracaar otomatis shutdown after 10 hours?
I use vps ubuntu 14.04 ram 1gb and java 8. set max memory 1024

Anton Tananaev8 years ago

How many devices do you have? Have you checked logs for errors?

beryindo8 years ago
How many devices do you have? Have you checked logs for errors?

2 device

wrapper.log

WARNING|wrapper|Service traccar|17-03-24 07:44:57|YAJSW: yajsw-stable-12.08
WARNING|wrapper|Service traccar|17-03-24 07:44:57|OS   : Linux/2.6.32-042stab117.14/amd64
WARNING|wrapper|Service traccar|17-03-24 07:44:57|JVM  : Oracle Corporation/1.8.0_121//usr/lib/jvm/java-8-oracle/jre/64
INFO|wrapper|Service traccar|17-03-24 07:44:58|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.7.jar:/opt/traccar/lib/h2-1.4.193.jar:/opt/traccar/lib/mysql-connector-java-5.1.40.jar:/opt/traccar/lib/postgresql-9.4.1212.jre7.jar:/opt/traccar/lib/mssql-jdbc-6.1.0.jre7.jar:/opt/traccar/lib/HikariCP-java7-2.4.11.jar:/opt/traccar/lib/slf4j-api-1.7.21.jar:/opt/traccar/lib/netty-3.10.6.Final.jar:/opt/traccar/lib/async-http-client-1.9.40.jar:/opt/traccar/lib/slf4j-simple-1.7.22.jar:/opt/traccar/lib/javax.json-1.0.4.jar:/opt/traccar/lib/jetty-server-9.2.21.v20170120.jar:/opt/traccar/lib/javax.servlet-api-3.1.0.jar:/opt/traccar/lib/jetty-http-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-io-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-servlet-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-security-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-webapp-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-xml-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-jndi-9.2.21.v20170120.jar:/opt/traccar/lib/jetty-util-9.2.21.v20170120.jar:/opt/traccar/lib/websocket-server-9.2.21.v20170120.jar:/opt/traccar/lib/websocket-common-9.2.21.v20170120.jar:/opt/traccar/lib/websocket-api-9.2.21.v20170120.jar:/opt/traccar/lib/websocket-client-9.2.21.v20170120.jar:/opt/traccar/lib/websocket-servlet-9.2.21.v20170120.jar:/opt/traccar/lib/jersey-container-servlet-2.25.1.jar:/opt/traccar/lib/jersey-container-servlet-core-2.25.1.jar:/opt/traccar/lib/javax.inject-2.5.0-b32.jar:/opt/traccar/lib/jersey-common-2.25.1.jar:/opt/traccar/lib/javax.annotation-api-1.2.jar:/opt/traccar/lib/jersey-guava-2.25.1.jar:/opt/traccar/lib/hk2-api-2.5.0-b32.jar:/opt/traccar/lib/hk2-utils-2.5.0-b32.jar:/opt/traccar/lib/aopalliance-repackaged-2.5.0-b32.jar:/opt/traccar/lib/hk2-locator-2.5.0-b32.jar:/opt/traccar/lib/javassist-3.20.0-GA.jar:/opt/traccar/lib/osgi-resource-locator-1.0.1.jar:/opt/traccar/lib/jersey-server-2.25.1.jar:/opt/traccar/lib/jersey-client-2.25.1.jar:/opt/traccar/lib/jersey-media-jaxb-2.25.1.jar:/opt/traccar/lib/validation-api-1.1.0.Final.jar:/opt/traccar/lib/javax.ws.rs-api-2.0.1.jar:/opt/traccar/lib/jersey-media-json-jackson-2.25.1.jar:/opt/traccar/lib/jersey-entity-filtering-2.25.1.jar:/opt/traccar/lib/jackson-jaxrs-base-2.8.4.jar:/opt/traccar/lib/jackson-core-2.8.4.jar:/opt/traccar/lib/jackson-databind-2.8.4.jar:/opt/traccar/lib/jackson-jaxrs-json-provider-2.8.4.jar:/opt/traccar/lib/jackson-module-jaxb-annotations-2.8.4.jar:/opt/traccar/lib/jackson-annotations-2.8.4.jar:/opt/traccar/lib/liquibase-core-3.5.3.jar:/opt/traccar/lib/snakeyaml-1.17.jar:/opt/traccar/lib/mail-1.4.7.jar:/opt/traccar/lib/activation-1.1.jar:/opt/traccar/lib/jxls-2.3.0.jar:/opt/traccar/lib/commons-jexl-2.1.1.jar:/opt/traccar/lib/commons-logging-1.1.1.jar:/opt/traccar/lib/commons-beanutils-1.9.2.jar:/opt/traccar/lib/jcl-over-slf4j-1.7.12.jar:/opt/traccar/lib/logback-core-1.1.3.jar:/opt/traccar/lib/jxls-poi-1.0.11.jar:/opt/traccar/lib/poi-3.14.jar:/opt/traccar/lib/poi-ooxml-3.14.jar:/opt/traccar/lib/poi-ooxml-schemas-3.14.jar:/opt/traccar/lib/xmlbeans-2.6.0.jar:/opt/traccar/lib/stax-api-1.0.1.jar:/opt/traccar/lib/curvesapi-1.03.jar:/opt/traccar/lib/velocity-1.7.jar:/opt/traccar/lib/commons-collections-3.2.1.jar:/opt/traccar/lib/commons-lang-2.4.jar:/opt/traccar/lib/ical4j-2.0.0.jar:/opt/traccar/lib/commons-collections4-4.0.jar:/opt/traccar/lib/groovy-all-2.3.2.jar:/opt/traccar/lib/bndlib-2.3.0.jar:/opt/traccar/lib/org.osgi.core-4.3.1.jar:/opt/traccar/lib/commons-lang3-3.3.2.jar:/opt/traccar/lib/commons-codec-1.9.jar" "-Dfile.encoding=UTF-8" "-Xrs" "-Dwrapper.service=true" "-Dwrapper.console.visible=false" "-Xmx1024m" "-Dwrapper.port=15003" "-Dwrapper.key=-7147393481809124959" "-Dwrapper.teeName=-7147393481809124959$1490355897600" "-Dwrapper.tmp.path=/opt/traccar/tmp" "-Djna_tmpdir=/opt/traccar/tmp" "-Dwrapper.config=/opt/traccar/conf/wrapper.conf" "-Dwrapper.visible=false" "-Dwrapper.pidfile=/run/wrapper.traccar.pid" "org.rzo.yajsw.app.WrapperJVMMain" 
INFO|wrapper|Service traccar|17-03-24 07:44:58|posix_spawn pid 15901
INFO|wrapper|Service traccar|17-03-24 07:44:58|started process 15901
INFO|wrapper|Service traccar|17-03-24 07:44:58|started process with pid 15901
INFO|15901/0|Service traccar|17-03-24 07:45:02|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|15901/0|Service traccar|17-03-24 07:45:06|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
INFO|15901/0|Service traccar|17-03-24 07:45:08|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO|15901/0|Service traccar|17-03-24 07:45:09|INFO 3/24/17 7:45 AM: liquibase: Clearing database change log checksums
INFO|15901/0|Service traccar|17-03-24 07:45:10|INFO 3/24/17 7:45 AM: liquibase: Successfully acquired change log lock
INFO|15901/0|Service traccar|17-03-24 07:45:10|INFO 3/24/17 7:45 AM: liquibase: Successfully released change log lock
INFO|15901/0|Service traccar|17-03-24 07:45:10|INFO 3/24/17 7:45 AM: liquibase: Successfully acquired change log lock
INFO|15901/0|Service traccar|17-03-24 07:45:15|INFO 3/24/17 7:45 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|15901/0|Service traccar|17-03-24 07:45:15|INFO 3/24/17 7:45 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|15901/0|Service traccar|17-03-24 07:45:15|INFO 3/24/17 7:45 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: Can't DROP 'uk_user_token'; check that column/key exists [Failed SQL: ALTER TABLE traccar.users DROP KEY uk_user_token]
INFO|15901/0|Service traccar|17-03-24 07:45:15|INFO 3/24/17 7:45 AM: liquibase: Successfully released change log lock
INFO|15901/0|Service traccar|17-03-24 07:45:17|[main] INFO org.eclipse.jetty.util.log - Logging initialized @18566ms
INFO|15901/0|Service traccar|17-03-24 07:45:19|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.21.v20170120
INFO|15901/0|Service traccar|17-03-24 07:45:23|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@46039a21{/api,null,AVAILABLE}
INFO|15901/0|Service traccar|17-03-24 07:45:23|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@4a11c680{HTTP/1.1}{0.0.0.0:80}
INFO|15901/0|Service traccar|17-03-24 07:45:23|[main] INFO org.eclipse.jetty.server.Server - Started @24810ms
INFO|15901/0|Service traccar|17-03-24 13:05:08|Missing wrapper ping within timeout of 30000
INFO|15901/0|Service traccar|17-03-24 13:05:18|[HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1m6s278ms71??s843ns).
WARNING|15901/0|Service traccar|17-03-24 13:05:27|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|15901/0|Service traccar|17-03-24 13:05:40|wrapper manager received stop command
beryindo8 years ago

wrapper.conf

wrapper.java.command=java
wrapper.java.maxmemory=1024
wrapper.java.app.jar=tracker-server.jar
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'}
spec vps server
Anton Tananaev8 years ago

Usually this error means that Traccar process doesn't have enough resources.

beryindo8 years ago
Usually this error means that Traccar process doesn’t have enough resources.

how to repair?

Anton Tananaev8 years ago

Get a better server, I guess. Do you have anything else running on the server?

beryindo8 years ago
Get a better server, I guess. Do you have anything else running on the server?

I just installed java, mysql and traccar

Anton Tananaev8 years ago

Then it should be enough. Why did you change the default config then?

beryindo8 years ago
Then it should be enough. Why did you change the default config then?

I've tried using the default configuration, but the result is the same

Anton Tananaev8 years ago

If you provide access, I can check the server.

beryindo8 years ago
If you provide access, I can check the server.

I uninstall traccar 3.10, and I try traccar 3.7.
I do not know what's wrong. traccar 3.10 wasteful use internet quota. use traccar version 3.7, 100mb enough for 1 month. but using traccar 3.10 not enough for 1 month.

Anton Tananaev8 years ago

There is no difference in terms of data usage between 3.7 and 3.10.