Gmail issue

Karlito 9 months 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 Tananaev9 months ago

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

Karlito 9 months 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 Tananaev9 months ago

Are you using Docker? How are you restarting it?

Karlito 9 months ago

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

Track-trace9 months ago

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

Karlito 9 months 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 Tananaev9 months ago

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

Karlito 9 months ago

yes, sure, the modification stay.

Anton Tananaev9 months ago

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

Karlito 9 months 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 Tananaev9 months 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 9 months ago

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

Anton Tananaev9 months ago

And you're using the latest official release?

Karlito 9 months ago

yes (i think), 5.8