Raspbian (ARM) email notification problems [Solved]

fmarkos 4 years ago

In case someone has same problems as mine. (using: traccar-linux-arm-4.15)
No email with:

/opt/traccar/jre/bin $ ./java -version
openjdk version "11.0.13" 2021-10-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)
OpenJDK Server VM 18.9 (build 11.0.13+8-LTS, mixed mode)

Email OK with:

java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Raspbian-2deb10u1)
OpenJDK Server VM (build 11.0.12+7-post-Raspbian-2deb10u1, mixed mode)

sudo systemctl stop traccar.service
sudo nano /etc/systemd/system/traccar.service
changed /opt/traccar/jre/bin/java -> /usr/bin/java
sudo systemctl daemon-reload
sudo systemctl start traccar.service

Anton Tananaev 4 years ago

What's the error?

Richard Acosta 4 years ago

It's a known issue, you need to link to an external jre since the one on traccar does not work OK on ARM.

fmarkos 4 years ago

There is no error. The problem was that it couldn't send email with the provided java version.
I switched to the one I had installed in the Raspberry Pi and it works fine.
I just thought I could help someone with the same problem since I spent 2 hours to figure this out.
So the problem is solved.