Traccar on Synology via Docker

prime1236 years ago

I manage to install the Traccar via the Docker package on my Synology NAS.
However when I click the shortcut, the site refuse to connect.

This site can’t be reached
MyNas.synology.me refused to connect.

On chrome ,key in MyNas.Synology.me:55000 also the same result.

Any help will be appreciated.

Docker log as follow :

Date                         	stream	           content
2019-05-19 12:47:59	stdout	SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
2019-05-19 12:47:59	stdout	SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2019-05-19 12:47:59	stdout	SLF4J: Found binding in [jar:file:/opt/traccar/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2019-05-19 12:47:59	stdout	SLF4J: Found binding in [jar:file:/opt/traccar/lib/slf4j-jdk14-1.7.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2019-05-19 12:47:59	stdout	SLF4J: Class path contains multiple SLF4J bindings.
2019-05-19 10:28:02	stdout	SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
2019-05-19 10:28:02	stdout	SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2019-05-19 10:28:02	stdout	SLF4J: Found binding in [jar:file:/opt/traccar/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2019-05-19 10:28:02	stdout	SLF4J: Found binding in [jar:file:/opt/traccar/lib/slf4j-jdk14-1.7.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2019-05-19 10:28:02	stdout	SLF4J: Class path contains multiple SLF4J bindings.
prime1236 years ago

I solved it by using MyNas.synology.me:8082 instead.
To be able to receive Location Update, port on device(Iphone) used is also 8082 NOT 55055 or 5055. (Traccar Client)
All ports need to be port forwarded at router for it to work.

The Traccar image used is downloaded within the DOCKER package Registry.
I also edit Docker Port Setting for both the Local Port and Container Port to 8082.

1sthandy6 years ago

Hi prime123,

but synology uses many Ports in Range of 5000-5*** so becarful.

https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Network/What_network_ports_are_used_by_Synology_services
vs Traccar Ports
https://www.traccar.org/devices/

so it it better to use the ports between 55000-55300 on a synology for traccar.

For Webport u can also use the reverseproxy from the synology from traccar.domain.com:443 to local.ip:8082 with ssl cert

Greetings 1sthandy

prime1236 years ago

Greetings 1sthandy
Thank you for your reply.
(Also thank you for being the author of this package. )

I did try to use the ports you recommended with the port forwarded but I just cannot get it to work.
Only port 8082 work.
I also tried to add my Meitrack GPS tracker ,using port 8082,5020 ,55020 .All refuse to track.
Only Android and Iphone client will work. ,with port 8082
Any help will be appreciated.

prime1235 years ago

Anyone can share their setting for Traccar via Docker on Synology.

My setting ,on Synology Docker
Local Port : 55000
Container Port: 8082

Traccar Client
Server Url : MyNas.synology.me:55000
(recommended port is 55055 ,but it cannot work.
With Port 55055,already forwarded in my ASUS router BUT when using Port Tester ,55055 is still not open.
Any suggestion ?)

On Chrome browser
MyNas.synology.me:55000

All working well for Traccar Client.

My Meitrack tracker still cannot work.
With traccar demo server,the port used is 5020 .
Recommended on Synology Docker is 55020
I tried with port 8082,5000,55000,5020,55020.
All above ports forwarded at my ASUS Router.
Does not work.
Any suggestion ?

Jeff Lucido5 years ago

@Prime123 were you able to get the Docker image running properly on your Synology NAS? I am attempting to install the server via Docker on my 218+ device but have hit some road blocks (mostly due to my lack of knowledge). I am starting with the Debian 4.8 image from Docker Hub but when I attempt to launch the container it fails. Do you mind sharing more details on how you were able to get the container to run? Thank you for your consideration.

Tash4 years ago

Hello everyone,
I managed to run the traccar docker container in bridge mode and the web interface is available using the port 8082. I had to open the 8082 in my router as well as the port for the GPS tracker in my case 5013.
To have access to the conf folder and logs I had to create the folders in Synology with their corresponding mount path /opt/traccar/logs and /opt/traccar/conf

Neverthless starting the container at this point it fails with an error that no traccar.xml file is found. To fix this I just saved the default ones traccar.xml and default.xml from the github in the conf folder docker/traccar/conf
Both files traccar.xml and default.xml can be found here: https://github.com/traccar/traccar/tree/master/setup
Consider taking the content as raw in a notepad as save it in your synology.
Restarting the container will go fine after and you will find the logs under the docker/traccar/logs folder.
I hope this helps!
I added this in the github as well with a screenshot of my setup, the link is here: https://github.com/traccar/traccar-docker/issues/29
Cheers,
Florin

Mcfly4 years ago

Hello guys
i would like to manage my futur own gps device on my synology
where did you buy your device ? iwould like a sort of yabby gps with battery included
does it work fine ?
thanks

Tash4 years ago

Hi there, I've been using this for the last 3 years, nothing to complain about:
€ 11,71 20%OFF | Mini Waterproof Builtin Battery GSM GPS tracker 3G WCDMA device ST-901 for Car Motorcycle Vehicle Remote Control Free Web APP
https://a.aliexpress.com/_mKIIHNR

czech_daver4 years ago

Hi there, i managed to prepare packages, install java and MariaDB. I'm also connected as root on SSH, but now i dont know how to install packages and setup rest. :-( Can some one help please? I try to find manual or tutorial, but nothing. I will be very grateful, thanks. David

smalloak673 years ago

Is the Java runtime part of the traccar docker image?

I'm asking, because Java is no longer supported with DSM7 from Synology (no official package available).
Before upgrading to DSM7, I want to make sure that traccer will still run on my Synology :-)