Traccar fails to start with forward.enable

Jake Stride8 years ago

I have nothing in the logs but traccar won't start with the following in traccar.conf, is there something obvious I'm missing please?:

<entry key='forward.enable'>true</entry>
<entry key='forward.url'>https://server/api/gpslogger?latitude={latitude}&longitude={longitude}&device={uniqueId}&battery={battery}&acuracy={accuracy}&altitude={altitude}&provider=traccar&activity={status}&api_password=PASSWORD-THAT-CONTAINS-A-!</entry>
Anton Tananaev8 years ago

Config looks fine to me.

Jake Stride8 years ago

I thought so, but if I comment it out then it starts!

Anton Tananaev8 years ago

I realised the problem. You need to escape characters to make it a valid XML.

In the future if Traccar doesn't start you need to check logs instead of guessing what can be wrong.

Jake Stride8 years ago

Thanks (although the logs didn't say anything - it just looked like everything started OK!).