Traccar IO error

dennis mureithi5 years ago

I have a chinese clone that works on port 5001. I am using my own machine as a host for traccar service. So, my device keeps on going offline and online and upon checking on the logs I find this:

2019-09-21 21:47:26  INFO: [b83d8f13] connected
2019-09-21 21:47:27  INFO: [b83d8f13: gps103 < 197.182.229.28] HEX: 23232c696d65693a3836343839333033333632313233392c413b
2019-09-21 21:47:27  INFO: [b83d8f13: gps103 > 197.182.229.28] HEX: 4c4f4144
2019-09-21 21:47:28  INFO: [b83d8f13: gps103 < 197.182.229.28] HEX: 696d65693a3836343839333033333632313233392c747261636b65722c3139303932313035303534302c2c462c3034303534302e30302c412c303131392e37363132372c532c30333635322e35393332302c452c32372e3630372c3236322e35303b
2019-09-21 21:47:28  INFO: [b83d8f13] id: 864893033621239, time: 2019-09-21 07:05:40, lat: -1.32935, lon: 36.87655, speed: 27.6, course: 262.5
2019-09-21 21:47:33  WARN: [b83d8f13] error - An existing connection was forcibly closed by the remote host - IOException (...)
2019-09-21 21:47:33  INFO: [b83d8f13] disconnected
2019-09-21 21:47:56  INFO: [f6e8c2f2] connected
2019-09-21 21:47:57  INFO: [f6e8c2f2: gps103 < 197.182.229.28] HEX: 23232c696d65693a3836343839333033333632313233392c413b
2019-09-21 21:47:57  INFO: [f6e8c2f2: gps103 > 197.182.229.28] HEX: 4c4f4144
2019-09-21 21:47:58  INFO: [f6e8c2f2: gps103 < 197.182.229.28] HEX: 696d65693a3836343839333033333632313233392c747261636b65722c3139303932313035303832302c2c462c3034303832302e30302c412c303131392e38373438362c532c30333635312e35313831322c452c32342e3231302c3238322e30303b
2019-09-21 21:47:58  INFO: [f6e8c2f2] id: 864893033621239, time: 2019-09-21 07:08:20, lat: -1.33125, lon: 36.85864, speed: 24.2, course: 282.0
2019-09-21 21:48:03  WARN: [f6e8c2f2] error - An existing connection was forcibly closed by the remote host - IOException (...)
2019-09-21 21:48:03  INFO: [f6e8c2f2] disconnected
2019-09-21 21:49:00  INFO: [42ac5817] connected
2019-09-21 21:49:00  INFO: [42ac5817: gps103 < 105.161.117.222] HEX: 23232c696d65693a3836343839333033333632313233392c413b
2019-09-21 21:49:00  INFO: [42ac5817: gps103 > 105.161.117.222] HEX: 4c4f4144

So I have searched around and the solution closest to what I was looking for said that another device is attempting to connect to that port. I am pretty sure that that is my device so thats off the table. I however realised that its IP keeps on changing. What could be bringing these changes?

Anton Tananaev5 years ago

Your device keeps reconnecting.

dennis mureithi5 years ago

Does this make it a device issue or is it a common issue with chinese clones?

Anton Tananaev5 years ago

Don't know. Could be either.

Diego Marchesini5 years ago

Maybe the device is releasing the ip and your ISP is giving a new one or you have a fixed ip for the device?

dennis mureithi5 years ago

No, the IP is not fixed. My thinking is that the device keeps on turning off and on. But I am not sure as I do not have direct access to the physical device

Diego Marchesini5 years ago

Can anybody touch the device, turning it on and off? (some devices allow to disable power button via sms command but i donĀ“t know if you can send commands to that device)

dennis mureithi5 years ago

I do not think someone is tampering with it. I have tested with similar devices I had and they are working perfectly. So maybe the problem is a faulty device or poor installation. I'll try to reset it and see if anything changes

dennis mureithi5 years ago

So, I finally figured it out. The problem was that the simcard in the tracker had no airtime on it hence it kept on disconnecting. I loaded some airtime on it and everything has been perfect since.
Thanks again!