Device is always showing as Offline
in the traccar UI on my server.
The GPS device is a Wanway S20. I pointed it to connect to my server instead of the demo server. (I sent a configuration sms to my gps device: SERVER,1,myname.duckdns.org,8082,0#
)
The server is hosted on my Home Assistant as a HA addon.
The traccar web UI works fine locally and remotely - myname.duckdns.org:8082
(port forwarded)
I added <entry key='gt06.port'>5023</entry>
in traccar.xml and rebooted. Not sure if needed, but I also forwarded port 5023 in my router.
I'm also not sure if the directory for the config is correct, I ssh into HA and the file is under addon_configs/[uniquestring]_traccar/traccar.xml
. It's the same file as the one on github so I think it's correct. (https://github.com/hassio-addons/addon-traccar/blob/main/traccar/rootfs/etc/traccar/traccar.xml)

Browser console shows no errors other than Geolocation support is not available so the GeolocateControl will be disabled.
I checked logs in the HA addon page, they look like this:
[09:40:36] INFO: Starting Traccar server...
s6-rc: info: service legacy-services successfully started
2024-01-16 09:40:38 INFO: Operating system name: Linux version: 6.1.71-haos architecture: amd64
2024-01-16 09:40:38 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.21+9-alpine-r0
2024-01-16 09:40:39 INFO: Memory limit heap: 512mb non-heap: 0mb
2024-01-16 09:40:39 INFO: Character encoding: UTF-8 charset: UTF-8
2024-01-16 09:40:39 INFO: Version: 5.11
2024-01-16 09:40:39 INFO: Starting server...
2024-01-16 09:40:39 INFO: HikariPool-1 - Starting...
2024-01-16 09:40:40 INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@701a32
2024-01-16 09:40:40 INFO: HikariPool-1 - Start completed.
2024-01-16 09:40:40 INFO: Clearing database change log checksums
2024-01-16 09:40:41 INFO: Successfully acquired change log lock
2024-01-16 09:40:41 INFO: Successfully released change log lock
2024-01-16 09:40:47 INFO: Reading from traccar.DATABASECHANGELOG
2024-01-16 09:40:49 INFO: Reading from traccar.DATABASECHANGELOG
Database is up to date, no changesets to execute
2024-01-16 09:40:49 INFO: Reading from traccar.DATABASECHANGELOG
2024-01-16 09:40:49 INFO: UPDATE SUMMARY
2024-01-16 09:40:49 INFO: Run: 0
2024-01-16 09:40:49 INFO: Previously run: 46
2024-01-16 09:40:49 INFO: Filtered out: 0
2024-01-16 09:40:49 INFO: -------------------------------
2024-01-16 09:40:49 INFO: Total change sets: 46
UPDATE SUMMARY
Run: 0
Previously run: 46
Filtered out: 0
-------------------------------
Total change sets: 46
2024-01-16 09:40:49 INFO: Update summary generated
2024-01-16 09:40:49 INFO: Successfully released change log lock
2024-01-16 09:40:49 INFO: Command execution complete
2024-01-16 09:40:50 INFO: jetty-11.0.19; built: 2023-12-15T20:54:39.802Z; git: f781e475c8fa9e9c8ce18b1eaa03110d510f905f; jvm 11.0.21+9-alpine-r0
[09:40:50] INFO: Starting NGinx server...
2024-01-16 09:40:51 INFO: Started o.t.w.@10582605{/,null,AVAILABLE}
2024-01-16 09:40:51 INFO: Session workerName=node0
2024-01-16 09:40:52 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2024-01-16 09:40:52 INFO: Started o.e.j.s.ServletContextHandler@8a38484{/,null,AVAILABLE}
2024-01-16 09:40:53 INFO: Started ServerConnector@4bde735a{HTTP/1.1, (http/1.1)}{localhost:18682}
2024-01-16 09:40:53 INFO: Started Server@72525837{STARTING}[11.0.19,sto=0] @16232ms
2024-01-16 09:40:53 WARN: No systemd support - Unable to load library 'systemd':
Error loading shared library libsystemd.so: No such file or directory
Error loading shared library libsystemd.so: No such file or directory
Native library (linux-x86-64/libsystemd.so) not found in resource path (tracker-server.jar) - UnsatisfiedLinkError (... < TaskHealthCheck:49 < <gener:-1 < *:-1 < ... < ScheduleManager:48 < ...)
2024-01-16 09:44:20 INFO: user: 1, action: login, from: [my.ip]
Any help would be greatly appreciated.
Have you followed the troubleshooting guide?
Yes, though I'm not sure if I'm looking in the right place at the logs. The only place I could find logs is in the home assistant UI in the addon configuration. Do the log entries I posted above look like the ones I should be looking at? If yes then it looks like there's no HEX messages.
If your device is using GT06 protocol (correct port 5023), HEX samples will start with 7878 or 7979, like this:
78780D01086471700328358100093F040D0A
Point 4 in troubleshooting:
If you don't see HEX message in the log, it means that server doesn't receive any data from your device. Possible reasons:
Server is not visible from the Internet. Use port check tool to verify. Proceed to point 6 if port is closed.
Device is configured incorrectly or there is some problem with the device. Contact device vendor for more information.
The device is configured correctly, I quadruple checked, and it works fine when I configure it for a demo server.
So that leaves the server is not visible from the internet?
The router is configured to forward external ports to my server, though maybe I have something mixed up? there's a screenshot above with how i forwarded my ports.
Firewall on my server or router is not blocking connections.
I tried configuring it with my public IP address and also with duckdns DDNS.
Port check tool confirmed ports are open
Why are you using port 8082 on the device? That is completely wrong.
Here's the output of netstat:

Shouldn't it show that it's listening on ports 8082, and 5023 since I added <entry key='gt06.port'>5023</entry>
in traccar.xml?
I don't know if that grep would work.
Why are you using port 8082 on the device? That is completely wrong.
Should I be using 5023? I had tried that as well with the same result
SERVER,1,myname.duckdns.org,5023,0#
Have you read the documentation? It should answer your question.
I have. Thank you for your help, I'll continue to troubleshoot and post back if I find my issue.
I managed to get it to work. The issue was with device configuration - sending command FACTORYALL#
before sending the server configuration sms is required. doh
Thanks again for trying to help, great piece of software Traccar is :)
Device is always showing as
Offline
in the traccar UI on my server.The GPS device is a Wanway S20. I pointed it to connect to my server instead of the demo server. (I sent a configuration sms to my gps device:
SERVER,1,myname.duckdns.org,8082,0#
)The server is hosted on my Home Assistant as a HA addon.
The traccar web UI works fine locally and remotely -
myname.duckdns.org:8082
(port forwarded)I added
<entry key='gt06.port'>5023</entry>
in traccar.xml and rebooted. Not sure if needed, but I also forwarded port 5023 in my router.I'm also not sure if the directory for the config is correct, I ssh into HA and the file is under
addon_configs/[uniquestring]_traccar/traccar.xml
. It's the same file as the one on github so I think it's correct. (https://github.com/hassio-addons/addon-traccar/blob/main/traccar/rootfs/etc/traccar/traccar.xml)Browser console shows no errors other than
Geolocation support is not available so the GeolocateControl will be disabled.
I checked logs in the HA addon page, they look like this:
Any help would be greatly appreciated.