Traccar v4.10 - Error Mail Notifications

Karl G4 years ago

I have tried both default Java and latest Java

Anton Tananaev4 years ago

So also ARM architecture? Try the latest version of Java (14).

Karl G4 years ago

Still the same is Java 14 on Pi.

Steps used

Stop traccar

service traccar stop

Update Java

wget https://download.bell-sw.com/java/14.0.2+13/bellsoft-jdk14.0.2+13-linux-arm32-vfp-hflt.deb
sudo apt-get install ./bellsoft-jdk14.0.2+13-linux-arm32-vfp-hflt.deb
sudo update-alternatives --config javac
sudo update-alternatives --config java

Start traccar

service traccar start

When you click on show Address for any device you still get

Invalid ECDH ServerKeyExchange signature - SSLHandshakeException (... < JsonGeocoder:114 < ServerResource:57 < ...)
Anton Tananaev4 years ago

Wait, have you configured Traccar to use the new Java version?

Karl G4 years ago

Sorted now

Karl G4 years ago

it was still using 11 on the service,

/opt/traccar/jre/bin/java -Djdk.tls.client.protocols=TLSv1.2 -jar tracker-server.jar conf/traccar.xml

needed to be changed to

/usr/lib/jvm/bellsoft-java14-arm32-vfp-hflt/bin/java -Djdk.tls.client.protocols=TLSv1.2 -jar tracker-server.jar conf/traccar.xml
Anton Tananaev4 years ago

OK, so sounds like new version of Java should fix the issue.

Karl G4 years ago

So
nano /etc/systemd/system/traccar.service

and change the ExecStart= line

[Unit]
Description=traccar
After=network.target

[Service]
Type=simple
WorkingDirectory=/opt/traccar

ExecStart=/usr/lib/jvm/bellsoft-java14-arm32-vfp-hflt/bin/java  -Djdk.tls.client.protocols=TLSv1.2 -jar tracker-server.jar conf/traccar.xml


SyslogIdentifier=traccar
SuccessExitStatus=143
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Then reload the services with

systemctl daemon-reload

Then restart the service

service traccar start

Juan Sánchez4 years ago

Hello!

I've tested with openjdk 11:
2020-09-07 23:54:38 INFO: Java runtime name: OpenJDK Server VM vendor: Raspbian version: 11.0.8+10-post-Raspbian-1deb10u1

On /etc/systemd/system/traccar.service:

ExecStart=/usr/lib/jvm/default-java/bin/java -jar tracker-server.jar conf/traccar.xml

And now is working.

It seems that is required to update jre version of the 4.10 in order to solve it (On ARM version)

Juan Sánchez4 years ago

Hello again;

Only to add:

JRE version included on traccar (ARM):
OpenJDK Server VM vendor: Oracle Corporation version: 11.0.5+10-LTS

So, it seems that change to 11.0.8 will solve it.

regards

Eddie4 years ago

Hello,

I confirm correct operation. The JAVA version can be the minimum package, that is:

ii openjdk-11-jre-headless: armhf 11.0.8 + 10-1 ~ deb10u1 armhf OpenJDK Java runtime, using Hotspot JIT (headless)

And the config in the service:

ExecStart = / usr / lib / jvm / java-11-openjdk-armhf / bin / java -jar tracker-server.jar conf / traccar.xml

Regards,

sieks4 years ago

How about new 4.11 version and raspberry pi? e-mail notification still not working?
I upgrade my traccar to new 4.11 version, but seems e-mail sending in my case not working. maybe someone who have rasprebby pi can try e-mail sending functionality and report to forum?

My Rapsberry OS:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

I use build in traccar java version:

/opt/traccar/jre/bin/java --version
openjdk 11.0.8 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)

When try send e-mail error:

Invalid ECDH ServerKeyExchange signature - SSLHandshakeException (... < MailManager:139 < *:92 < NotificatorMail:34 < NotificationResource:63 < ...)

Regards

Anton Tananaev4 years ago

Try using standard Java that comes with your OS.

sieks4 years ago

Thank you Anton, your idea work to me.

Installed default-jdk and configure traccar service to run with new java and all starts working.

David4 years ago

Buenas noches, tengo una maquina en digitocean y estas son las caracteristicas: 8 GB Memory / 160 GB Disk / SFO3 - Traccar 4.10 on Ubuntu 20.04

No me acepta la configuracion de gmail, para las notificaciones, hay alguna solucion?