Geocoding failed

cyrix20007 years ago

Hi,

I have problems getting (any) geocoding to work:
The default google setting gives me these error messages in the log file:

2017-07-23 14:20:45  WARN: Geocoding failed - https://maps.googleapis.com:443 - ConnectException (...)
2017-07-23 14:20:45  INFO: [FF250C97] id: xxx, time: 2017-07-23 14:20:43, lat: 50.xxxxx, lon: 7.xxxxx, speed: 0.1, course: 218.8
2017-07-23 14:20:53 DEBUG: [FF250C97: 5055 < 91.48.13.203] HEX: 474554202f3f69643d30373936303231343136352674696d657374616d703d31353030383136303533266c61743d35302e3432373033343130343134343539266c6f6e3d372e33353036343732363631313738312673706565643d302e3032393433343835303434353234383138342662656172696e673d3231382e373835393439373037303331323526616c7469747564653d3237372e353030313338383934313339323426626174743d34372e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420372e303b20534d2d4739333546204275696c642f4e524439304d290d0a486f73743a206a616e7363687761727a2e64653a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-07-23 14:20:53 DEBUG: [FF250C97: 5055 > 91.48.13.203] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a

Then I tried LocationIQ which gives me this error message:

2017-07-23 19:56:34  WARN: Geocoding failed - General SSLEngine problem - ConnectException (...)
2017-07-23 19:56:35  INFO: [C2C8F715] id: xxx, time: 2017-07-23 19:56:33, lat: 50.xxxxx, lon: 7.xxxxx, speed: 0.0, course: 0.0
2017-07-23 19:56:43 DEBUG: [C2C8F715: 5055 < 92.40.249.247] HEX: 474554202f3f69643d30373936303231343136352674696d657374616d703d31353030383336323033266c61743d35302e3837373838343739303138383332266c6f6e3d372e3132313838303430303437383734322673706565643d302e302662656172696e673d302e3026616c7469747564653d3131382e3533303733373035393239303626626174743d39302e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420372e303b20534d2d4739333546204275696c642f4e524439304d290d0a486f73743a206a616e7363687761727a2e64653a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-07-23 19:56:43 DEBUG: [C2C8F715: 5055 > 92.40.249.247] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a

And my next try, Nominatim, ended with that error message:

2017-07-23 21:09:17  WARN: Geocoding failed - Unexpected char 60 at (line no=1, column no=1, offset=0) - JsonParsingException (... < JsonGeocoder:66 < ...)
2017-07-23 21:09:17 DEBUG: [0550D787: 5055 > 92.40.249.247] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-07-23 21:09:17  INFO: [0550D787] id: xxx, time: 2017-07-23 20:57:00, lat: 50.xxxxx, lon: 7.xxxxx, speed: 1.6, course: 246.0
2017-07-23 21:09:17 DEBUG: [0550D787: 5055 < 92.40.249.247] HEX: 474554202f3f69643d30373936303231343136352674696d657374616d703d31353030383339383533266c61743d35302e3837393937363131383133323037266c6f6e3d372e3132313439323032353531343139312673706565643d312e3633313730373832373033393935372662656172696e673d3232302e3435363833323838353734323226616c7469747564653d35322e353939303738343034303938373726626174743d37372e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420372e303b20534d2d4739333546204275696c642f4e524439304d290d0a486f73743a206a616e7363687761727a2e64653a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a

What am I doing wrong?

Anton Tananaev7 years ago

Google - seems like your server is not able to connect to Google service
LocationIQ - looks like a serious problem with SSL; possibly certificates issue
Nominatim - doesn't return valid JSON data, but you should not use free Nominatim server

markus7 years ago

Hi Anton!
Once again thank you very much for traccar and still making enhancements for it.

Since I've updated from 3.10 to 3.13 I also have the same problem with Geocoding using the standard configuration with Google:

2017-08-13 13:00:12 WARN: Geocoding failed - https://maps.googleapis.com:443 - ConnectException (...)

I could not find any problems with the config hence I'm using the same as under 3.10 without any changes. By the way, the Geocoding settings are within the default.xml.

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>

When I go back to the previous Version 3.10 by simply changing the folder to my backup made before upgrading Geocoding is running once again.

Can you please check if there might be any issue with Geocoding in the new version?

Thanks a lot!
Markus

Anton Tananaev7 years ago

I have just tested version 3.13 locally and it works just fine. Your error indicates some network issue.

markus7 years ago

Hi Anton!
Network ist the same, server ist the same. Nothing else has been changed. Just setup to 3.13.
Any other idea?
Yours
Markus

Anton Tananaev7 years ago

Possibly some change in Traccar or third party library triggered this issue, but I'm still pretty confident that it's some network problem.

markus7 years ago

Is there a chance to try it the connection outside traccar?
I'm sure it is no network thing.

Anton Tananaev7 years ago

That's a question for you. Have you tried connection outside Traccar?

abyss7 years ago

I've experienced the same problem on my Ubuntu 14.04.
The solution for me is to install fresh ca-certificates-java package, for example from 17.04 https://packages.ubuntu.com/artful/ca-certificates-java

abyss7 years ago

Correction
It is not related to trusted CAs (or not only). I have to use openjdk-8 to fix the problem. May be it is related to this issues https://github.com/AsyncHttpClient/async-http-client/issues/891 or https://github.com/AsyncHttpClient/async-http-client/issues/828 or something other.
Looks like some incorrect behavior AHC 1.9 on java 7

Anton Tananaev7 years ago

I believe Java 7 is no longer supported by Oracle anyway, so everyone should upgrade at least to 8.

abyss7 years ago

The problem is that java 8 is not included in ubuntu 14.04. (but system itself supported until 2019). I had to use not official ppa.