Server doesn't receive data.

vdovin8 years ago

Hi! I have build traccar 3.9 and then installed on machine. Also I install mysql for database and nominatim for reverse geocoding.But I have faced with a problem that my server doesn't receive data from my device(Xiaomi MI5). I see Location update in app, but mysql database doesn't have any rows with my coordinates. My server hosted at 188.138.194.174:8080. So I put 188.138.194.174 at domain field and 8080 at port field... Also i use mixed provider, because I don't see any message "Location update" with GPS provider... My last server logs


INFO|8707/0|Service ipathfinder|17-02-20 20:57:17|[qtp74885833-54] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7e49dc11[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x01\xC0\xCf^\xA4Z\xC4\xFa...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>\x01\x05\x03\x04\x01\x04\x03\x03\x01\x03\x03\x02\x01\x02\x03\x00\x10...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:17|[qtp74885833-54] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@75684b23{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-56] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@1dfacaec[p=1,l=154,c=16384,r=153]={\x16<<<\x03\x01\x00\x95\x01\x00\x00\x91\x03\x03\xCb\xDcg\xF3\x17\xE6\x8c...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>l,application/xht...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-56] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@3e8c5482{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@61c78cca[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x02\x17\xE1\xEc\x80b\x0f\xBe...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>5.0 (X11; Ubuntu;...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@3a005f70{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-55] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7e49dc11[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x01I\x15\x91\x15\xEd\xDcS...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>\x01\x05\x03\x04\x01\x04\x03\x03\x01\x03\x03\x02\x01\x02\x03\x00\x10...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:57:49|[qtp74885833-55] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@23b02fcf{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-55] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7e49dc11[p=1,l=154,c=16384,r=153]={\x16<<<\x03\x01\x00\x95\x01\x00\x00\x91\x03\x03\xBe\n\xE3\xF5*\x84\xA6...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>cko/20100101 Fire...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-55] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@495b87cd{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-54] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@1dfacaec[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x02\x99\xF2[\x0bhy\xA3...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>la/5.0 (X11; Ubun...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-54] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@3148adff{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@61c78cca[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x01\\7\x81\xC5\x9c\xD3\x98...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>gent: Mozilla/5.0...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:20|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@3f783e92{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-57] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@61c78cca[p=1,l=154,c=16384,r=153]={\x16<<<\x03\x01\x00\x95\x01\x00\x00\x91\x03\x03\xBe"\x95\x0c\xF9N ...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>; rv:51.0) Gecko/...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-57] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@b527779{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-56] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7e49dc11[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x02\x1dL\x0e\xA6\xD4\x07\xE4...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>\x01\x05\x03\x04\x01\x04\x03\x03\x01\x03\x03\x02\x01\x02\x03\x00\x10...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-56] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@62460472{r=0,c=false,a=IDLE,uri=}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@1dfacaec[p=1,l=110,c=16384,r=109]={\x16<<<\x03\x01\x00i\x01\x00\x00e\x03\x01\x03\xB1\xDa\x95x{\xE8...1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17>>>la/5.0 (X11; Ubun...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
INFO|8707/0|Service ipathfinder|17-02-20 20:58:52|[qtp74885833-53] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@2c7e8c5{r=0,c=false,a=IDLE,uri=}
Anton Tananaev8 years ago

First of all, it seems like you have enabled encryption in the app without enabling it on the server side.

Secondly, port for web interface is different from the port for Traccar Client. Port for Traccar Client is 5055.

vdovin8 years ago

Thanks! You're right, I needed to open 5055 port

Yechiel cohen6 years ago

Hi Anton,

I have followed the traccar SSL enabling guide https://www.traccar.org/secure-connection/ fully.
And when I try to access the traccar via https://<mydomain> I get the same above error:

[qtp116390399-32] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@244d9d89[p=1,l=215,c=16384,r=214]={\x16<<<\x03\x01\x00\xD2\x01\x00\x00\xCe\x03\x03!\xBe0\xE2\xE51\x95...\x00\x08JJ\x00\x1d\x00\x17\x00\x18\xFa\xFa\x00\x01\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
...
[qtp116390399-32] WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@2a1e3a8f{r=0,c=false,a=IDLE,uri=}
...

Access via http://<mydomain> is still ok.

Maybe the answer is to enable encryption in the traccar app. If then, could you please guide me how to do this ?

Thank you very much!

Yechiel cohen6 years ago

I forgot to mention that I mean to enable SSL on the web interface port 8082 (not the protocol port e.g 5055).
So just to have it clearer:
http://<mydomain>:8082 works
https://<mydomain>:8082 generates the above error

Yechiel cohen6 years ago

I managed to fix this problem. It turned out that there was another site enabled by our IT team with the same site redirection rules. So all I had to do is to disable it like this:

sudo a2dissite 000-default.conf

And of course, now I can access the web interface at https://<mydomain> (no need for the 8082 port...).

That solved the problem!