i have followed them but doesnt see any changes after:(
can a detailed tutorial be posted or even video. these are the steps i follow, see if am doing something wrong;
mv traccar-web.war /opt/traccar
service traccar start
help me if am doing something wrong.
I recommend to contact the author because it's not an official Traccar project.
I installed on Ubuntu last week and the traccar server was working great for a good while.
Now I restarted my server and traccar won't start.
My log output is below. I did "apt-get install default-jre" for Java.
I setup iptables for the various ports, and as stated all was well.
Any idea why the traccar won't start?
It's nto clear to me if/how I should reinstall the jre...or why that would be required.
root@vultr:~# ############Trying to Start Server...################# root@vultr:~# root@vultr:~# 2016-03-10 04:40:08 INFO: Operating system name: Linux version: 4.2.0-30-generic architecture: amd64 2016-03-10 04:40:15 INFO: Operating system name: Linux version: 4.2.0-30-generic architecture: amd64 2016-03-10 04:40:15 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01 2016-03-10 04:40:15 INFO: Memory limit heap: 592mb non-heap: 214mb 2016-03-10 04:40:15 INFO: Character encoding: UTF-8 charset: UTF-8 2016-03-10 04:40:15 INFO: Version: 3.2-SNAPSHOT 2016-03-10 04:40:21 INFO: Operating system name: Linux version: 4.2.0-30-generic architecture: amd64 2016-03-10 04:40:21 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01 2016-03-10 04:40:21 INFO: Memory limit heap: 592mb non-heap: 214mb 2016-03-10 04:40:21 INFO: Character encoding: UTF-8 charset: UTF-8 2016-03-10 04:40:21 INFO: Version: 3.2-SNAPSHOT 2016-03-10 04:40:27 INFO: Operating system name: Linux version: 4.2.0-30-generic architecture: amd64 2016-03-10 04:40:27 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01 2016-03-10 04:40:27 INFO: Memory limit heap: 592mb non-heap: 214mb 2016-03-10 04:40:27 INFO: Character encoding: UTF-8 charset: UTF-8 2016-03-10 04:40:27 INFO: Version: 3.2-SNAPSHOT 2016-03-10 04:40:34 INFO: Operating system name: Linux version: 4.2.0-30-generic architecture: amd64 2016-03-10 04:40:34 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01
You need to check wrapper.log for error messages.
STATUS | wrapper | 2016/03/10 04:40:28 | JVM received a signal UNKNOWN (6). INFO | jvm 4 | 2016/03/10 04:40:28 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/10 04:40:28 | JVM process is gone. ERROR | wrapper | 2016/03/10 04:40:28 | JVM exited while starting the application. STATUS | wrapper | 2016/03/10 04:40:33 | Launching a JVM... INFO | jvm 5 | 2016/03/10 04:40:33 | WrapperManager: Initializing... INFO | jvm 5 | 2016/03/10 04:40:34 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 5 | 2016/03/10 04:40:34 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/10 04:40:35 | JVM received a signal UNKNOWN (6). INFO | jvm 5 | 2016/03/10 04:40:35 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/10 04:40:35 | JVM process is gone. ERROR | wrapper | 2016/03/10 04:40:35 | JVM exited while starting the application. FATAL | wrapper | 2016/03/10 04:40:35 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. FATAL | wrapper | 2016/03/10 04:40:35 | There may be a configuration problem: please check the logs. STATUS | wrapper | 2016/03/10 04:40:35 | <-- Wrapper Stopped
Please tell me what you think I should do to (re)install my jre, if you think that is required.
Again, it was all GREAT just until recently...I was able to do some quick work since last week on a prototype. I am very thankful for your excellent server stack!
you do great work.
There is definitely some problem with Java runtime. Try to install JRE from Oracle or newer version of OpenJDK runtime.
This morning it started! Wrapper log output below.
I'm thinking this start/run-time problem could surface again, but I'm content with my current install so I'll keep an eye on it.
If the above fail-case logs compared to this success-case log are at all helpful, please let me know what you think.
STATUS | wrapper | 2016/03/10 14:06:59 | --> Wrapper Started as Daemon STATUS | wrapper | 2016/03/10 14:06:59 | Java Service Wrapper Community Edition 64-bit 3.5.27 STATUS | wrapper | 2016/03/10 14:06:59 | Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2016/03/10 14:06:59 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2016/03/10 14:06:59 | STATUS | wrapper | 2016/03/10 14:06:59 | Launching a JVM... INFO | jvm 1 | 2016/03/10 14:06:59 | WrapperManager: Initializing... INFO | jvm 1 | 2016/03/10 14:07:00 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 1 | 2016/03/10 14:07:00 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/10 14:07:01 | JVM received a signal UNKNOWN (6). INFO | jvm 1 | 2016/03/10 14:07:01 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/10 14:07:01 | JVM process is gone. ERROR | wrapper | 2016/03/10 14:07:01 | JVM exited while starting the application. STATUS | wrapper | 2016/03/10 14:07:06 | Launching a JVM... INFO | jvm 2 | 2016/03/10 14:07:06 | WrapperManager: Initializing... INFO | jvm 2 | 2016/03/10 14:07:06 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 2 | 2016/03/10 14:07:06 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/10 14:07:07 | JVM received a signal UNKNOWN (6). INFO | jvm 2 | 2016/03/10 14:07:07 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/10 14:07:07 | JVM process is gone. ERROR | wrapper | 2016/03/10 14:07:07 | JVM exited while starting the application. STATUS | wrapper | 2016/03/10 14:07:12 | Launching a JVM... INFO | jvm 3 | 2016/03/10 14:07:12 | WrapperManager: Initializing... INFO | jvm 3 | 2016/03/10 14:07:13 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 3 | 2016/03/10 14:07:13 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/10 14:07:14 | JVM received a signal UNKNOWN (6). INFO | jvm 3 | 2016/03/10 14:07:14 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/10 14:07:14 | JVM process is gone. ERROR | wrapper | 2016/03/10 14:07:14 | JVM exited while starting the application. STATUS | wrapper | 2016/03/10 14:07:18 | Launching a JVM... INFO | jvm 4 | 2016/03/10 14:07:18 | WrapperManager: Initializing... INFO | jvm 4 | 2016/03/10 14:07:19 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 4 | 2016/03/10 14:07:19 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] INFO | jvm 4 | 2016/03/10 14:07:50 | INFO 3/10/16 2:07 PM: liquibase: Successfully acquired change log lock INFO | jvm 4 | 2016/03/10 14:07:52 | INFO 3/10/16 2:07 PM: liquibase: Reading from traccar.DATABASECHANGELOG INFO | jvm 4 | 2016/03/10 14:07:52 | INFO 3/10/16 2:07 PM: liquibase: Successfully released change log lock INFO | jvm 4 | 2016/03/10 14:07:52 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> z8kflt9fqvft0kmwpk5k|1828ef60, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> z8kflt9fqvft0kmwpk5k|1828ef60, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ] INFO | jvm 4 | 2016/03/10 14:07:52 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.util.log - Logging initialized @33884ms INFO | jvm 4 | 2016/03/10 14:07:53 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - jetty-9.2.14.v20151106 INFO | jvm 4 | 2016/03/10 14:07:54 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@74a3d72e{/api,null,AVAILABLE} INFO | jvm 4 | 2016/03/10 14:07:54 | [WrapperSimpleAppMain] WARN org.eclipse.jetty.server.handler.AbstractHandler - No Server set for org.traccar.web.WebServer$1@308448d5 INFO | jvm 4 | 2016/03/10 14:07:54 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@5be52770{HTTP/1.1}{0.0.0.0:8082} INFO | jvm 4 | 2016/03/10 14:07:54 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - Started @35619ms root@vultr:~#
Everything seems to be fine now.
I am back to having this problem after the server ran for 10 days, but I needed to stop it and upgrade to get seconds from the data reported by api/positions.
I decided to try your advice to install a new JDK...which I did by replacing openJDK as follows...
http://askubuntu.com/questions/430434/replace-openjdk-with-oracle-jdk-on-ubuntu
I did all of that and this is now my java info...
# java -version java version "1.8.0_73" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
and my linux info is...
uname -a Linux vultr.guest 4.2.0-34-generic #39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I still can't start traccar, which is now 3.4 (I removed 3.3, installed 3.4, and only copied relevant bits of my old config file for the database access.
***Any idea why I have this trouble with the JVM?
STATUS | wrapper | 2016/03/23 15:32:47 | --> Wrapper Started as Daemon STATUS | wrapper | 2016/03/23 15:32:47 | Java Service Wrapper Community Edition 64-bit 3.5.28 STATUS | wrapper | 2016/03/23 15:32:47 | Copyright (C) 1999-2016 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2016/03/23 15:32:47 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2016/03/23 15:32:47 | STATUS | wrapper | 2016/03/23 15:32:47 | Launching a JVM... INFO | jvm 1 | 2016/03/23 15:32:48 | WrapperManager: Initializing... INFO | jvm 1 | 2016/03/23 15:32:48 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 1 | 2016/03/23 15:32:48 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/23 15:32:49 | JVM received a signal UNKNOWN (6). INFO | jvm 1 | 2016/03/23 15:32:49 | INFO 3/23/16 3:32 PM: liquibase: Clearing database change log checksums INFO | jvm 1 | 2016/03/23 15:32:49 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/23 15:32:49 | JVM process is gone. ERROR | wrapper | 2016/03/23 15:32:49 | JVM exited while starting the application. STATUS | wrapper | 2016/03/23 15:32:53 | Launching a JVM... INFO | jvm 2 | 2016/03/23 15:32:54 | WrapperManager: Initializing... INFO | jvm 2 | 2016/03/23 15:32:54 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 2 | 2016/03/23 15:32:54 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] INFO | jvm 2 | 2016/03/23 15:32:55 | INFO 3/23/16 3:32 PM: liquibase: Clearing database change log checksums STATUS | wrapper | 2016/03/23 15:32:55 | JVM received a signal UNKNOWN (6). INFO | jvm 2 | 2016/03/23 15:32:55 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/23 15:32:55 | JVM process is gone. ERROR | wrapper | 2016/03/23 15:32:55 | JVM exited while starting the application. STATUS | wrapper | 2016/03/23 15:33:00 | Launching a JVM... INFO | jvm 3 | 2016/03/23 15:33:00 | WrapperManager: Initializing... INFO | jvm 3 | 2016/03/23 15:33:00 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 3 | 2016/03/23 15:33:00 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] INFO | jvm 3 | 2016/03/23 15:33:01 | INFO 3/23/16 3:33 PM: liquibase: Clearing database change log checksums STATUS | wrapper | 2016/03/23 15:33:01 | JVM received a signal UNKNOWN (6). INFO | jvm 3 | 2016/03/23 15:33:01 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/23 15:33:01 | JVM process is gone. ERROR | wrapper | 2016/03/23 15:33:01 | JVM exited while starting the application. STATUS | wrapper | 2016/03/23 15:33:06 | Launching a JVM... INFO | jvm 4 | 2016/03/23 15:33:06 | WrapperManager: Initializing... INFO | jvm 4 | 2016/03/23 15:33:06 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 4 | 2016/03/23 15:33:06 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/23 15:33:07 | JVM received a signal UNKNOWN (6). INFO | jvm 4 | 2016/03/23 15:33:07 | INFO 3/23/16 3:33 PM: liquibase: Clearing database change log checksums INFO | jvm 4 | 2016/03/23 15:33:07 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/23 15:33:07 | JVM process is gone. ERROR | wrapper | 2016/03/23 15:33:07 | JVM exited while starting the application. STATUS | wrapper | 2016/03/23 15:33:12 | Launching a JVM... INFO | jvm 5 | 2016/03/23 15:33:12 | WrapperManager: Initializing... INFO | jvm 5 | 2016/03/23 15:33:12 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. INFO | jvm 5 | 2016/03/23 15:33:12 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] STATUS | wrapper | 2016/03/23 15:33:13 | JVM received a signal UNKNOWN (6). INFO | jvm 5 | 2016/03/23 15:33:13 | INFO 3/23/16 3:33 PM: liquibase: Clearing database change log checksums INFO | jvm 5 | 2016/03/23 15:33:13 | java: res_query.c:262: __libc_res_nquery: Assertion `(hp != ((void *)0)) && (hp2 != ((void *)0))' failed. STATUS | wrapper | 2016/03/23 15:33:13 | JVM process is gone. ERROR | wrapper | 2016/03/23 15:33:13 | JVM exited while starting the application. FATAL | wrapper | 2016/03/23 15:33:13 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. FATAL | wrapper | 2016/03/23 15:33:13 | There may be a configuration problem: please check the logs. STATUS | wrapper | 2016/03/23 15:33:13 | <-- Wrapper Stopped
It looks like the issue might be somehow related to bad DNS configuration:
Great hint! Thank you.
I found another descriptive comment here...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816669
I followed the logic and guessed that maybe I needed to nuke the ipV6 nameserver line in my resolv.conf. I commented that out, and traccar started-up for me just fine!
Now with 3.4 I also see I have seconds in api/positions..so I'm happy now!
Thanks for a great system, and for the awesome help you provide.
Here's what I did...
root@vultr:~# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # nameserver 2001:19f0:300:1704::6 nameserver 108.61.10.10 root@vultr:~# /opt/traccar/bin/traccar start Starting traccar... Waiting for traccar...... running: PID:4507 root@vultr:~#
Installation instructions are here:
http://traccar.litvak.su/installation.html