Hi all,
I’m trying to configure Traccar add-on in my Home Assistance instance using a Freematics One+ Traccar edition tracker.
I have installed mariadb and Traccar, logged in and set passwords. But when I try to enable the freematics.port entry in /config/traccar.xml, Traccar never seems to pick up the change and the port never opens.
My /config/traccar.xml file:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<!--
Loads default configuration for the Hass.io add-on.
WARNING: Do not remove this line!
-->
<entry key='config.default'>/etc/traccar/hassio.xml</entry>
<!--
This is the main configuration file. All your configuration parameters should be placed in this file.
Parameters in the main config file override values in the default file. Do not
remove "config.default" parameter from this file unless you know what you are doing.
For list of available parameters see following page:
https://www.traccar.org/configuration-file/
-->
<!-- Enter you custom configuration below this line -->
<entry key='freematics.port'>5170</entry>
</properties>
If I try to telnet to port 5170 on my HA, I get the following message:
telnet 192.168.1.200 5170
Connecting To 192.168.1.200...Could not open connection to the host, on port 5170: Connect failed
If I telnet to port 5055, I get the expected console prompt.
Edit:
My log from the Traccar addon:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
Add-on: Traccar
Modern GPS Tracking Platform
-----------------------------------------------------------
Add-on version: 0.17.0
You are running the latest version of this add-on.
System: Home Assistant OS 9.0 (amd64 / generic-x86-64)
Home Assistant Core: 2022.9.7
Home Assistant Supervisor: 2022.09.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/mysql.sh
cont-init: info: /etc/cont-init.d/mysql.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
cont-init: info: running /etc/cont-init.d/traccar.sh
cont-init: info: /etc/cont-init.d/traccar.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun traccar (no readiness notification)
s6-rc: info: service legacy-services successfully started
[14:50:18] INFO: Starting Traccar server...
2022-09-30 14:50:20 INFO: HikariPool-1 - Starting...
2022-09-30 14:50:21 INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@2250b9f2
2022-09-30 14:50:21 INFO: HikariPool-1 - Start completed.
2022-09-30 14:50:21 INFO: Clearing database change log checksums
2022-09-30 14:50:21 INFO: Successfully acquired change log lock
2022-09-30 14:50:22 INFO: Successfully released change log lock
2022-09-30 14:50:22 INFO: Successfully acquired change log lock
2022-09-30 14:50:22 INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2022-09-30 14:50:22 INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2022-09-30 14:50:24 INFO: Reading from traccar.DATABASECHANGELOG
2022-09-30 14:50:25 INFO: Reading from traccar.DATABASECHANGELOG
2022-09-30 14:50:25 INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
2022-09-30 14:50:25 INFO: Successfully released change log lock
2022-09-30 14:50:27 INFO: Operating system name: Linux version: 5.15.67 architecture: amd64
2022-09-30 14:50:27 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.15+10-alpine-r1
2022-09-30 14:50:27 INFO: Memory limit heap: 512mb non-heap: 0mb
2022-09-30 14:50:27 INFO: Character encoding: UTF-8 charset: UTF-8
2022-09-30 14:50:27 INFO: Version: 5.0
2022-09-30 14:50:27 INFO: Starting server...
2022-09-30 14:50:27 INFO: jetty-10.0.7; built: 2021-10-06T19:34:02.766Z; git: da8a4553af9dd84080931fa0f8c678cd2d60f3d9; jvm 11.0.15+10-alpine-r1
[14:50:28] INFO: Starting NGinx server...
2022-09-30 14:50:28 INFO: Started o.t.w.@5eeee124{/,null,AVAILABLE}
2022-09-30 14:50:28 INFO: Session workerName=node0
2022-09-30 14:50:29 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-09-30 14:50:30 INFO: Started o.e.j.s.ServletContextHandler@66b90ab3{/,null,AVAILABLE}
2022-09-30 14:50:30 INFO: Started ServerConnector@7fdab70c{HTTP/1.1, (http/1.1)}{localhost:18682}
2022-09-30 14:50:30 INFO: Started Server@586843bc{STARTING}[10.0.7,sto=0] @11168ms
2022-09-30 14:50:30 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:41 < ScheduleManager:33 < Main:127 < ...)
2022-09-30 14:55:31 INFO: user: 2, action: login
2022-09-30 14:56:48 INFO: user: 2, action: create, object: device, id: 1
2022-09-30 14:56:48 INFO: user: 2, action: link, owner: user, id: 2, property: device, id: 1
2022-09-30 14:58:32 INFO: user: 2, action: edit, object: device, id: 1
2022-09-30 14:59:03 INFO: [T2c762a20] connected
2022-09-30 14:59:07 INFO: [T2c762a20] disconnected
You can see my telnet to port 5055 right at the end.