in /opt/traccar/conf/traccar.xml
<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.ssl.trust'>*</entry>
<entry key='mail.smtp.from'>myemail@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>myemail@gmail.com</entry>
<entry key='mail.smtp.password'>xxx</entry>
the password is an application password because two-step authentication must be activated...
it work for me
Your log indicates that the service is running.
The service is offline after making the change when i try to access the machine it tells me unreachable.
I try to change the password.
unfortunately, even if the settings are changed, the machine does not start
Any other suggestions?
root@vps763138:~# sudo systemctl status traccar.service
● traccar.service - traccar
Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-12-23 17:36:37 CET; 47s ago
Process: 18529 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, st
Main PID: 18529 (code=exited, status=1/FAILURE)
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.Parser.ent(Parser.ja
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.Parser.step(Parser.j
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(Pars
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(Pars
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(Pars
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.impl.SAXParserImpl.parse(
dic 23 17:36:37 vps763138 traccar[18529]: at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.
dic 23 17:36:37 vps763138 traccar[18529]: ... 5 more
dic 23 17:36:37 vps763138 systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
dic 23 17:36:37 vps763138 systemd[1]: traccar.service: Failed with result 'exit-code'.
Yes, you have an invalid XML file.
I entered the configuration for sending emails I can't understand where the error is.
I have a problem with emails I can't configure Gmail parameters. I entered the Gmail configuration parameters in the traccar.xml file.
<entry key = 'mail.smtp.host'> smtp.gmail.com </entry> <entry key = 'mail.smtp.port'> 587 </entry> <entry key = 'mail.smtp.starttls.enable'> true </entry> <entry key = 'mail.smtp.from'> +++++++++ @ gmail.com </entry> <entry key = 'mail.smtp.auth'> true </entry> <entry key = 'mail.smtp.username'> +++++++++ @ gmail.com </entry> <entry key = 'mail.smtp.password'> ++++++++ </entry>
I restarted Traccar but the service does not start.
This is the error log.
Can you help me understand where I'm wrong.
Thanks
BR
Gabriele