Client sends weird information

Alex7 years ago

I had my Traccar client installed on my iPhone and it was working great.

I decided to hook up a domain to my server and secure it with a certificate, so now my server is secured with it through proxy. But now i cannot get my iphone connected anymore. It gives me the following error in the log

2017-11-29 10:54:43 DEBUG: [1EA873F0: 5055 < 89.200.46.241] HEX: 16030100d2010000ce030302571978b40ca4027a893b838b2c2dd58683536b37f5b0f4cb9449dab91dfea000002ec02cc02bc024c023c00ac009cca9c030c02fc028c027c014c013cca8c008c012009d009c003d003c0035002f000a01000077ff0100010000000010000e00000b747261636b6361722e6e6c00170000000d0014001204030804040105030805050108060601020100050005010000000033740000001200000010001b001908737064792f332e3106737064792f3308687474702f312e31000b00020100000a00080006001d00170018
2017-11-29 10:54:43  WARN: [1EA873F0] error - invalid version format: ￾ᅠ.￀,￀+￀$￀#￀ - IllegalArgumentException (...)
2017-11-29 10:54:43  INFO: [1EA873F0] disconnected
2017-11-29 10:54:43  WARN: [1EA873F0] error - invalid version format: ￾ᅠ.￀,￀+￀$￀#￀ - IllegalArgumentException (... < MainEventHandler:115 < *:104 < ... < GeocoderHandler:52 < ... < ExtendedObjectDecoder:52 < ...)
2017-11-29 10:54:43  INFO: [23F022A1] connected
2017-11-29 10:54:43 DEBUG: [23F022A1: 5055 < 89.200.46.241] HEX: 160301009e0100009a03018e85c9e704224ba832d4e29ca6d13564b50ca828455a5ded586b0f03dbc9e6b6000012002f003300350039c009c00ac013c01456000100005fff0100010000000010000e00000b747261636b6361722e6e6c0017000000050005010000000033740000001200000010001b001908737064792f332e3106737064792f3308687474702f312e31000b00020100000a00080006001d00170018
2017-11-29 10:54:43  WARN: [23F022A1] error - invalid version format: ￀ - IllegalArgumentException (...)
2017-11-29 10:54:43  INFO: [23F022A1] disconnected
2017-11-29 10:54:43  WARN: [23F022A1] error - invalid version format: ￀ - IllegalArgumentException (... < MainEventHandler:115 < *:104 < ... < GeocoderHandler:52 < ... < ExtendedObjectDecoder:52 < ...)

As server URL i used the https://domain.foo:5055, but it is not working anymore. What am i doing wrong?

Anton Tananaev7 years ago

How did you secure it? From what I can see server is receiving SSL connection directly without secure proxy.

Alex7 years ago

I secured it how the documentation described it. Did i forget something?

Anton Tananaev7 years ago

Documentation explains how to secure web interface connection only. If you want to enable encryption in Traccar Client, you would need to implement secure proxy for port 5055 as well.

Alex7 years ago

Ok, do you have an example for me how to do it?

Anton Tananaev7 years ago

You already have an example. If you are asking for exact config for Apache, I don't have it.

Alex7 years ago

Ok, so you mean:

                ProxyPass /api/socket ws://localhost:5055/api/socket
                ProxyPassReverse /api/socket ws://localhost:5055/api/socket

                ProxyPass / http://localhost:5055/
                ProxyPassReverse / http://localhost:5055/

:)

Anton Tananaev7 years ago

You don't need websocket proxy. Only the second part.

Alex7 years ago

Thank you, awesome support! Is there a donate option somewhere?

Anton Tananaev7 years ago
Alex7 years ago

Done, thank you for this great service. You guys rock!