When running the script to start Traccar, it says its started, but all things point to not working:
ubuntu@ip-172-31-44-229:~$ sudo /opt/traccar/bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-stable-12.08
OS : Linux/4.4.0-1039-aws/amd64
JVM : Oracle Corporation/1.8.0_151//usr/lib/jvm/java-8-openjdk-amd64/jre/64
Nov 17, 2017 4:13:48 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Nov 17, 2017 4:13:49 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************
Nov 17, 2017 4:13:49 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 17, 2017 4:13:53 PM org.rzo.yajsw.os.posix.PosixService start
INFO: Starting traccar ...
YAJSW: yajsw-stable-12.08
OS : Linux/4.4.0-1039-aws/amd64
JVM : Oracle Corporation/1.8.0_151//usr/lib/jvm/java-8-openjdk-amd64/jre/64
************* STARTING traccar ***********************
Service traccar started
Nov 17, 2017 4:13:53 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 17, 2017 4:13:54 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 17, 2017 4:13:54 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started
ubuntu@ip-172-31-44-229:~$
What’s in both of your log files?
Forgive my ignorance, whats the path to dump those?
Okay, for future, I found this section: https://www.traccar.org/troubleshooting/
So I have the following from /opt/traccar/logs:
root@ip-172-31-44-229:/opt/traccar/logs# cat tracker-server.log
2017-11-17 16:07:56 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-17 16:07:56 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-17 16:07:56 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-17 16:07:56 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-17 16:07:56 INFO: Version: 3.14-SNAPSHOT
2017-11-17 16:13:53 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-17 16:13:53 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-17 16:13:53 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-17 16:13:53 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-17 16:13:53 INFO: Version: 3.14-SNAPSHOT
root@ip-172-31-44-229:/opt/traccar/logs#
and for yesterday:
2017-11-16 22:14:18 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-11-16 22:14:18 INFO: [B10D15E6] id: IBR900-320, time: 2017-10-16 22:14:17, lat: 43.62045, lon: -116.20657, speed: 0.0, course: 0.0
2017-11-16 22:14:18 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-11-16 22:14:18 INFO: [B10D15E6] id: IBR900-320, time: 2017-11-16 22:14:17, lat: 43.62045, lon: -116.20657, speed: 0.0, course: 307.6
2017-11-16 22:15:01 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:15:01 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:15:01 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:15:01 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:15:01 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:15:51 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:15:51 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:15:51 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:15:51 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:15:51 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:18:27 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:18:27 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:18:27 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:18:27 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:18:27 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:21:42 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:21:42 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:21:42 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:21:42 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:21:42 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:24:49 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:24:49 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:24:49 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:24:49 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:24:49 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:29:33 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:29:33 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:29:33 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:29:33 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:29:33 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:35:23 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:35:23 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:35:23 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:35:23 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:35:23 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:35:55 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:35:55 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:35:55 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:35:55 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:35:55 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:41:21 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:41:21 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:41:21 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:41:21 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:41:21 INFO: Version: 3.14-SNAPSHOT
2017-11-16 22:49:35 INFO: Operating system name: Linux version: 4.4.0-1039-aws architecture: amd64
2017-11-16 22:49:35 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 25.151-b12
2017-11-16 22:49:35 INFO: Memory limit heap: 239mb non-heap: 0mb
2017-11-16 22:49:35 INFO: Character encoding: UTF-8 charset: UTF-8
2017-11-16 22:49:35 INFO: Version: 3.14-SNAPSHOT
root@ip-172-31-44-229:/opt/traccar/logs#
LEt me know if this is what you wanted. Appreciate the help!
whats in the wrapper* log?
GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
FINEST|5852/0|Service traccar|17-11-16 22:49:41| at org.traccar.database. GroupTree.getNodes(GroupTree.java:146)
INFO|wrapper|Service traccar|17-11-16 22:49:41|waitpid 5852 59136
INFO|wrapper|Service traccar|17-11-16 22:49:41|exit code posix process: 59136 ap plication: 0
root@ip-xxx-xxx-xxx-xxx:/opt/traccar/logs#
The bulk of the log is a repeat of the GroupTree entries. The log for 11-16 is above, the log for 11-17 below:
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
FINEST|9296/0|Service traccar|17-11-17 16:13:59| at org.traccar.database.GroupTree.getNodes(GroupTree.java:146)
INFO|wrapper|Service traccar|17-11-17 16:13:59|waitpid 9296 59136
INFO|wrapper|Service traccar|17-11-17 16:13:59|exit code posix process: 59136 application: 0
root@ip-xxx-xxx-xxx-xxx:/opt/traccar/logs#
try this for solution
https://www.traccar.org/forums/topic/how-to-fix-a-cycle-in-groups/
Socstur, I am not sure where to query the database for schema.
get the following output:
ubuntu@ip-172-31-44-229:/opt/traccar/data$ update groups set groupid = null where id = groupid;
No command 'update' found, did you mean:
Command 'lupdate' from package 'qtchooser' (main)
Command 'pupdate' from package 'pbuilder-scripts' (universe)
Command 'xupdate' from package 'libxml-xupdate-libxml-perl' (universe)
Command 'uupdate' from package 'devscripts' (main)
Command 'zupdate' from package 'zutils' (universe)
update: command not found
ubuntu@ip-172-31-44-229:/opt/traccar/data$
Do you know where I'd run the command? Or perhaps if I'm off the mark? The other article is also on Windows, not Linux.
Obviously you need to connect to the database using some client.
Is there a preferred client you'd recommend?
If you are using H2 database, then you can use H2 console.
What is native, when you install on Ubuntu? I apologize, I've only ever used Traccar's web-interface .
By default Traccar uses H2 database, if that's what you are asking.
So I finally got a point where I have the H2 Console installed and a usable browser in this AWS instance. Trying to connect to the database, just not sure what JDBC URL I'd use to direct my queries. Can someone point me in the right direction?
Hey folks,
Restarted my Ubuntu server yesterday and cannot get Traccar to start back up. Regardless of running the /startDaemon.sh or not.
service status shows the following:
This was built from Git Source, any ideas?