Traccar with docker on Synology DSM 7.x ; connection refused and container crashes

Frank de Bruin 2 years ago

I am following these instructions https://motorradtouren.de/coding-stuff/traccar/synology-docker-install-traccar-server/ to install the latests traccar on my synology NAS. Everything seems to fine until I try to connect via port 8082.

The docker container is stopped. In the log I find the following errors:

2024-07-13 08:08:14  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:51 < <gener:-1 < *:-1 < ... < ScheduleManager:49 < ...)
2024-07-13 08:08:14  INFO: HikariPool-1 - Starting...
2024-07-13 08:08:20 ERROR: Main method error - Connection refused (Connection refused) - ConnectException (... < DatabaseModule:80 < <gener:-1 < *:-1 < ... < MainModule:128 < ...)

In the instructions there is special reference to a discussion (https://www.traccar.org/forums/topic/web-gui-404-not-found-from-one-day-to-another/page/3/) that cautions to use file mounting versus folder mounting.

From what I can see, I do use the mandatory file mounting of traccar.xml:

Greenshot 2024-07-13 09.58.08.png

Did I misunderstand and should this look differently?

Also, there is mentioning of a default.xml but when I visit the link to github (https://github.com/traccar/traccar/tree/master/setup) there is no such file.

Can anyone help me to move on from here?

Regards,
Frank

Frank de Bruin 2 years ago

Following up my own post..

The warnings about the missing shared library "libsystemd.so" I could suppress by adding <entry key='web.disableHealthCheck'>true</entry> to the traccar.xml as mentioned in another post here on the forum.

The connection refused is not related to the file / folder mounting: if I switch from MariadB to H2, the container runs properly and I can connect to the server.

The search continues.

Frank

Frank de Bruin 2 years ago

Got it to work: I had to enable TCP connections on port 3307 in the MariaDB application on the Synology.

Frank

Javier Sanchez a year ago

Hi Frank,

I have same problem when i try to connect via port 8082 with mariaDB (h2 works fine)

Have you followed any internet manual?

Javi.

Frank de Bruin a year ago

Yes, as I mentioned in my first post in this thread, I followed the instructions on https://motorradtouren.de/coding-stuff/traccar/synology-docker-install-traccar-server/.

Frank