No data after re-install

Markus7 years ago

I reinstalled Traccar after upgrading my Odroid from Debian Jessie to stretch five days ago. Until then, it worked fine with my Meitrack mvt800, so port 5020 is forwarded correctly in my router.

Now the device doesnt show up in the log anymore. I the wanted to try if the android app works (original traccar client app). I forwarded port 5055 for that.

This is what I get:

2018-07-09 19:27:49  INFO: Operating system name: Linux version: 4.9.103-odroidxu4 architecture: arm
2018-07-09 19:27:49  INFO: Java runtime name: OpenJDK Client VM vendor: Oracle Corporation version: 25.171-b11
2018-07-09 19:27:49  INFO: Memory limit heap: 247mb non-heap: 0mb
2018-07-09 19:27:49  INFO: Character encoding: UTF-8 charset: UTF-8
2018-07-09 19:27:49  INFO: Version: 3.17-SNAPSHOT
2018-07-09 19:28:02  INFO: Starting server...
2018-07-09 22:08:25  INFO: Operating system name: Linux version: 4.9.103-odroidxu4 architecture: arm
2018-07-09 22:08:26  INFO: Java runtime name: OpenJDK Client VM vendor: Oracle Corporation version: 25.171-b11
2018-07-09 22:08:26  INFO: Memory limit heap: 247mb non-heap: 0mb
2018-07-09 22:08:26  INFO: Character encoding: UTF-8 charset: UTF-8
2018-07-09 22:08:26  INFO: Version: 3.17-SNAPSHOT
2018-07-09 22:09:32  INFO: Starting server...
2018-07-09 22:10:26  INFO: user: 1, action: login
2018-07-09 22:11:00  INFO: user: 1, action: edit, object: user, id: 1
2018-07-09 22:14:58  INFO: user: 1, action: login
2018-07-09 22:15:11  INFO: user: 1, action: create, object: device, id: 1
2018-07-09 22:15:11  INFO: user: 1, action: link, owner: user, id: 1, property: device, id: 1
2018-07-09 22:24:16  INFO: [5CD5DC89] connected
2018-07-09 22:24:17  INFO: [5CD5DC89] disconnected
2018-07-09 22:26:04  INFO: [31FD4A44] connected
2018-07-09 22:26:04  INFO: [31FD4A44] disconnected
2018-07-09 22:27:40  INFO: [7489884D] connected
2018-07-09 22:27:40  INFO: [7489884D] disconnected

So the android device somehow connects but doesnt get data through, while the meitrack device is totally gone. What could have gone wrong on re-install ?

Markus7 years ago

...demo server works fine BTW !

Anton Tananaev7 years ago

Have you checked if ports are open? How did you determine that those connections are from Android device?

Markus7 years ago

According to port checking on your troubleshooting page, 5020 and 5055 are open.

I thought it was the Android device because those messages appeared when I switched the client on. But then again, after that nothing got through anymore.
But what could prevent both devices to reach the servers when ports are open?

Anton Tananaev7 years ago

If that is Android, where are the port-check logs then?

Markus7 years ago

Port Check logs? Does Port checking on your troubleshooting page log anything?

Anton Tananaev7 years ago

It connects to the server so you should see "connect" and "disconnect" straight away. It would look exactly like what you claim to be Traccar Client connections.

Markus7 years ago

I don't claim anything ;)

I don't understand why my perfect running setup stopped working after a reinstall. If ports are open, what reason could there be so that devices couldn't reach the server?

Anton Tananaev7 years ago

If devices work with demo server, I'm guessing there must be some issue with network or your server.

Markus7 years ago

That's what I figured. But what issues could that be. Every other service works fine, ports are reachable... I tried to enter the servers IP into the app to see if a direct connection were possible, no luck. What issue could there be with my server. It's a fresh install. Tried onboard database, tried MySQL. Can setup everything but it doesn't receive. I'm lost.

Markus7 years ago

Can I somehow check whether traccar is listening on those ports?

Anton Tananaev7 years ago

Try to send something directly to the server from your computer or mobile phone.

Markus7 years ago

I tried entering the local IP of the server into the client android app while the device was connected to the local network. Nothing. This is the netstat output:

http://abload.de/image.php?img=screenshot_20180710-0usj77.jpg

Markus7 years ago

Aha!

If I use the original traccar app for local network - nothing in the logs.

I then tried a 3rd party app "Tracker for traccar" and entered the servers address. No I at least have something in the logs

2018-07-10 10:08:53  INFO: [870DC72B] connected
2018-07-10 10:08:53 DEBUG: [870DC72B: 5055 < 192.168.2.123] HEX: 24504749442c3335343037353039313630313232332a30610d0a
2018-07-10 10:08:53  WARN: [870DC72B] error - empty text - IllegalArgumentException (...)
2018-07-10 10:08:53  INFO: [870DC72B] disconnected
2018-07-10 10:09:04  INFO: [D10D9977] connected
2018-07-10 10:09:04 DEBUG: [D10D9977: 5055 < 192.168.2.123] HEX: 24504749442c3335343037353039313630313232332a30610d0a
2018-07-10 10:09:04  WARN: [D10D9977] error - empty text - IllegalArgumentException (...)
2018-07-10 10:09:04  INFO: [D10D9977] disconnected
2018-07-10 10:09:15  INFO: [82A233B3] connected
2018-07-10 10:09:15 DEBUG: [82A233B3: 5055 < 192.168.2.123] HEX: 24504749442c3335343037353039313630313232332a30610d0a
2018-07-10 10:09:15  WARN: [82A233B3] error - empty text - IllegalArgumentException (...)
2018-07-10 10:09:15  INFO: [82A233B3] disconnected
2018-07-10 10:12:39  INFO: [B1404803] connected
2018-07-10 10:12:39 DEBUG: [B1404803: 5055 < 192.168.2.123] HEX: 24504749442c3335343037353039313630313232332a30610d0a
2018-07-10 10:12:39  WARN: [B1404803] error - empty text - IllegalArgumentException (...)
2018-07-10 10:12:39  INFO: [B1404803] disconnected
Markus7 years ago

Anton, I got it.

The problem was ddclient. Ddclient sent my local IP to the dyndns service instead of the web IP. One line in the ddclient.conf did the job. Traccar original client still doesnt work but I dont care about that. My cars are back in my sight ;)

Sorry for bothering !