Mikrotik GPS v7.10

Matúša year ago

With the new version of RouterOS, and maybe even earlier, several new problems appeared

  1. the date format changed - I have fixed that
  2. Traccar server stopped responding to GET requests from the router -

after HEX decoding the log shows this:

GET /favicon.ico  HTTP/1.1
Host: traccar.xxx.xx:5055
Connection: close
user-agent: Mikrotik/7.x Fetch
referer:  http://traccar.xxx.xx:5055/?id=XXXXXX&lat=43.635503&lon=15.684091×tamp=1688726840&speed=0.370400&course=36.480000&satelites=9

and the position is not recorded

When I enter the link from this log directly into the browser, everything goes OK and the location is recorded.
Does anyone have an idea where I'm going wrong?

Anton Tananaeva year ago

As you can probably see yourself, that data sample is not the right one. It's just a favicon request.

Matúša year ago

Sorry, that was just one of many tests. Here it is correct, but the result is the same.

GET / HTTP/1.1
Host: traccar.xxx.xx:5055
Connection: close
user-agent: Mikrotik/7.x Fetch
referer:  http://traccar.xxx.xx:5055/?id=XXXX&lat=43.727744&lon=15.878012×tamp=1688741008&speed=11.29720&course=71.559998&satelites=10
Anton Tananaeva year ago

No, it's not correct. Please carefully check the request you posted.

Matúša year ago

Sorry again

GET /?id=XXXX&lat=43.717714&lon=15.902275×tamp=1688743045&speed=0.018520&course=48.840000&satelites=10  HTTP/1.1
Host: traccar.xxx.xx
Connection: close
user-agent: Mikrotik/7.x Fetch
Matúša year ago

I made many attempts but still without success:
the same request from the browser works and from the Mikrotik router, not. There must be something I'm doing wrong.

Anton Tananaeva year ago

The last sample you provided finally looks correct. Is there a reason you're not posting the original logs fragments?

Matúša year ago

it is original HEX decoded log from server, only id an host are changed

Anton Tananaeva year ago

I understand, but it doesn't answer my question. I want to see the original logs and not just one sample. I want to see logs around it to see what happened. That's the whole point of logs.

Matúša year ago

and here is log ftom browser request:

GET /?id=XXXX&lat=43.717714&lon=15.902276×tamp=1688743681&speed=0.074080&course=208.32000&satelites=10 HTTP/1.1
Host: traccar.xxx.xx:5055
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: sk-SK,sk;q=0.9,cs;q=0.8,en-US;q=0.7,en;q=0.6
Cookie: __utmc=67951238; _ga=GA1.2.721741163.1455628899; __utmz=67951238.1674578133.22.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=67951238.721741163.1455628899.1674578133.1681137564.23; ....
Matúša year ago

You mean this:

2023-07-07 15:53:04  INFO: [2225550c] connected
2023-07-07 15:53:04  INFO: [2225550c: osmand < 31.217.5.117] HEX: 474554202f3f69643d333535363534303933333132373730266c61743d34332e373137373139266c6f6e3d31352e3930323238332674696d657374616d703d313638383734353137372673706565643d302e30333730343026636f757273653d31332e34343030303026736174656c697465733d31302020485454502f312e310d0a486f73743a20747261636361722e666f726d612e736b0d0a436f6e6e656374696f6e3a20636c6f73650d0a757365722d6167656e743a204d696b726f74696b2f372e782046657463680d0a0d0a
2023-07-07 15:53:04  INFO: [2225550c: osmand > 31.217.5.117] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2023-07-07 15:53:04  INFO: [2225550c] disconnected
Anton Tananaeva year ago

What version of Traccar are you using? Please try with the latest version.

Matúša year ago

I installed the new version and it seems to work.
Thanks