Synology NAS Traccar Server

Charsher479 years ago

I've just set up a traccar server on my Synology NAS and I'm having difficulty getting any mobile clients to be recognized. I've tried an Android and an iOS phone and they both are able to push data to the server but both are giving the same errors shown below:

2015-09-16 08:35:50 DEBUG: [A5D5B521: 55005 <- 198.184.248.250] - HEX: 474554202f3f69643d3934353639382674696d657374616d703d31343432343130343632266c61743d33332e38343539266c6f6e3d2d38342e323430342673706565643d302662656172696e673d3026616c7469747564653d3331342e33383526626174743d3020485454502f312e310d0a486f73743a20382e32362e3233302e3234343a35353030350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f322e302043464e6574776f726b2f3731312e352e362044617277696e2f31342e302e300d0a4163636570742d4c616e67756167653a20656e2d75730d0a4163636570743a202a2f2a0d0a0d0a
2015-09-16 08:35:50  WARN: String index out of range: 0 - java.lang.StringIndexOutOfBoundsException (String.java:658)
2015-09-16 08:35:50  INFO: Closing connection by exception
2015-09-16 08:35:50  INFO: Closing connection by disconnect
2015-09-16 08:35:51 DEBUG: [FFD3AFCB: 55005 <- 166.170.57.62] - HEX: 474554202f3f69643d3530323930302674696d657374616d703d31343432333737373436266c61743d33332e37383039343533266c6f6e3d2d38342e333838363535372673706565643d302e302662656172696e673d302e3026616c7469747564653d302e3026626174743d31362e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420352e313b204c472d48383130204275696c642f4c4d59343744290d0a486f73743a20382e32362e3233302e3234343a35353030350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2015-09-16 08:35:51  WARN: String index out of range: 0 - java.lang.StringIndexOutOfBoundsException (String.java:658)
2015-09-16 08:35:51  INFO: Closing connection by exception
2015-09-16 08:35:51  INFO: Closing connection by disconnect

The synology package has the mobile clients set up on port 55005 by default and it's enabled in my config.

Thanks!

Charsher479 years ago

Ok, I've got it working with my Android phone using a third party app.

Why don't the official apps work with my server? Has the protocol changed in some way over time? I'm running v2.12 since it's the latest available package for the NAS.

Anton Tananaev9 years ago

Recently I have changed the protocol used by Traccar Client. Now the apps use OsmAnd protocol (port 5055 in Traccar by default).

Note that Synology package is not an official Traccar project.

Charsher479 years ago

Ah that would be why. I changed them to the osmand protocol port (port 55055 for you other Synology folks) and now both clients work.

I realize the package was built by someone else but I thought you might know the answer ;) Thanks!

tgavos8 years ago

Hello Charsher47,
It was good to read the topics on Traccar / Synology.
Believe it or not, I recently bought a DS216J from Synology especially for this purpose, not knowing of this issue.
I am an average user with a bit more than average knowledge but I really need step by step info in order to get the traccar server on my NAS working
It would be great to get some help from you.
I am going to use Traccar for boyds in nautic contests where the sailers have their own client on their phones.
Tom Vos Almere The Netherlands

Anton Tananaev8 years ago

You should use port 55055 for Traccar Client with Traccar server on Synology.