Gmail issue

Karlito 2 years ago

Hi everybody,
my traccar server work well on my synology Nas but i can't have notification by mail (gmail).
I follow this step by step : https://www.traccar.org/gmail/
but i've got this error in the web app :

No SMTP configuration found - MessagingException (SmtpMailManager:114 < *:99 < NotificatorMail:47 < NotificationResource:96 < ...)

like traccar doesn't read my mail setting in traccar.xml :(

thanks for help
Karl

Anton Tananaev2 years ago

Are you sure you've changed the right file? Have you restarted the service after changing the config?

Karlito 2 years ago

thanks for your reply.
Yes, i've restarted the server after each modification.
I change the file traccar.xml in the conf folder.To be sure, i erase temporary this file and traccar won't start.

Anton Tananaev2 years ago

Are you using Docker? How are you restarting it?

Karlito 2 years ago

Yes, docker.
i shutdown the contener and power on after modification.

Track-trace2 years ago

Why dont you show what you have added in traccar.xml in the first place?

Karlito 2 years ago

yes, right :

<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.from'>blabla@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>blabla@gmail.com</entry>
<entry key='mail.smtp.password'>xxxxxxxxxxxxxxxx</entry> 
Anton Tananaev2 years ago

Are you sure it doesn't reset the configuration when you restart the container?

Karlito 2 years ago

yes, sure, the modification stay.

Anton Tananaev2 years ago

This error can only happen if mail.smtp.host is not set in the config. So you must be missing something.

Karlito 2 years ago

ok, but this line is ok :

<entry key='mail.smtp.host'>smtp.gmail.com</entry>

it seems traccar don't read the setting in traccar.xml like my other problem in a other post with event forwarding, is it possible.
i've seen the folder in traccar\db and traccar\traccar\db are empty, is it normal ?

thanks for your help

Karl

Anton Tananaev2 years ago

Not possible because Traccar won't launch without config file, so it is reading some config, but might not be the same file you're modifying.

There's no "db" folder. Where did you get it from?

Karlito 2 years ago

it's the good file because if i delete it, traccar won't boot...

Anton Tananaev2 years ago

And you're using the latest official release?

Karlito 2 years ago

yes (i think), 5.8