The issue definitely looks like you have geocoding enabled. If it is enabled, you need to keep the connection open. If you close it immediately, geocoding is terminated and you never get the position.
Looks like the location of my traccar.xml was bad, I fixed that and now it is working. Thanks! BTW, why is there a dependency on the connection staying alive for geocoding to work?
The issue definitely looks like you have geocoding enabled. If it is enabled, you need to keep the connection open. If you close it immediately, geocoding is terminated and you never get the position.