Email Notification error after upgrading 5.0->5.2

pagi2 years ago

hello, I have a problem with emal notifications;

2022-07-21 16:42:24  INFO: [Td27ca517] error - NullPointerException (... < MailManager:74 < *:107 < *:99 < NotificatorMail:44 < NotificationManager:104 < ...)

It previoulsy work on 5.0 but after upgrade to 5.2 without configuration changes it not working.

Anton Tananaev2 years ago

What about the config?

pagi2 years ago

I have it configured in webgui -> settings -> account -> atributes

and there:
mail: SMTP host: my own smtp server
mail: SMTP port: 465
mail: SMTP From: Traccar
mail: SMTP username: traccar(at)mydomain.com
mail: SMTP password: somepassword
mail: Required: checked
mail: Enabled: checked
mail: Enable SMTP Auth: checked

And it worked for traccar 5.0

BR
Pawel

pagi2 years ago

Ok, i changed it to traccar.conf and there:

<entry key='mail.smtp.host'>mySMTPserver</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.from'>email_address</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>username</entry>
<entry key='mail.smtp.password'>password</entry>

I thing that smtp.ssl.enable is missing in WEB GUI. I don't remeber if it was in 5.0 but there email notifications was worked configured like above in WEB GUI.

Anton Tananaev2 years ago

I thing that smtp.ssl.enable is missing in WEB GUI.

I can see it there.

pagi2 years ago

Ok. Now I found after switching language to ENG. There are some translation to PL errors. In polish this parametr is something like: "mail: enable" withount any SSL.

Thanks Anton :)

Anton Tananaev2 years ago

You can help us with the translation here:

https://transifex.com/traccar/traccar

pagi2 years ago

Ok I corrected few translations (including these about email) and add few missing. Now Polish translation looks good in my opinion and it's complete.

BR
Pawel

Anton Tananaev2 years ago

Thank you.

francis32 years ago

Same problem here. ENG UI, btw.

Solved switching from
Per-user configuration in user attributes
to
Server-wide parameters in the server config file (traccar.xml)

Anyway, I checked the DB backup made before deleting the "per-user configuration"
and I noticed that during the upgrade were added these two fields in the user attributes:

mail.smtp.starttls.enable:true
mail.smtp.starttls.required:true

Regards,
francis3

Anton Tananaev2 years ago

We don't add any attributes automatically, if that's what you mean.

francis32 years ago

Sounded strange to me, you were adding attributes between upgrades.

Gonna investigate more accurately, and report.

Thx, Anton!

Regards,
francis3

Anton Tananaev2 years ago

We add attribute definitions. We don't add values to users.

francis32 years ago

Obviously you were right, Anton!

I checked previous DB backups and the two attributes mentioned above were already there before the upgrade to
traccar 5.2.

My bad while I was playing with user attributes.

Thx for your assistance, Anton!

Regards,
francis3