Hi, my traccar service stopped after adding gmail config lines to traccar.xml.
Logs show :
2024-04-20 13:07:58 INFO: Stopping server...
2024-04-20 13:27:33 INFO: Operating system name: Linux version: 5.15.0-102-generic architecture: amd64
2024-04-20 13:27:33 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2024-04-20 13:27:33 INFO: Memory limit heap: 16024mb non-heap: 0mb
2024-04-20 13:27:33 INFO: Character encoding: UTF-8
2024-04-20 13:27:33 INFO: Version: 5.12
2024-04-20 13:27:33 INFO: Starting server...
2024-04-20 13:27:33 INFO: Health check enabled with period 480000
2024-04-20 13:27:33 INFO: HikariPool-1 - Starting...
2024-04-20 13:27:33 INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@7051777c
2024-04-20 13:27:33 INFO: HikariPool-1 - Start completed.
2024-04-20 13:27:33 INFO: Clearing database change log checksums
2024-04-20 13:27:33 INFO: Successfully acquired change log lock
2024-04-20 13:27:34 INFO: Operating system name: Linux version: 5.15.0-102-generic architecture: amd64
2024-04-20 13:27:34 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2024-04-20 13:27:34 INFO: Memory limit heap: 16024mb non-heap: 0mb
2024-04-20 13:27:34 INFO: Character encoding: UTF-8
2024-04-20 13:27:34 INFO: Version: 5.12
2024-04-20 13:27:34 INFO: Starting server...
2024-04-20 13:27:34 INFO: Health check enabled with period 480000
2024-04-20 13:27:34 INFO: HikariPool-1 - Starting...
2024-04-20 13:27:34 INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@7051777c
2024-04-20 13:27:34 INFO: HikariPool-1 - Start completed.
2024-04-20 13:27:34 INFO: Clearing database change log checksums
2024-04-20 13:27:35 INFO: Waiting for changelog lock....
2024-04-20 13:27:45 INFO: Waiting for changelog lock....
2024-04-20 13:27:55 INFO: Waiting for changelog lock....
2024-04-20 13:28:05 INFO: Waiting for changelog lock....
2024-04-20 13:28:15 INFO: Waiting for changelog lock....
I have tried to remove the added lines save the file and restart but nothing still stopped:
my xml file is as this:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='config.default'>./conf/default.xml</entry>
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:/traccar?allowPublicKeyRetrieval=true&serverTimezone=UTC&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>traccar</entry>
<entry key='database.password'>XXXXXXXX</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>XXXXXXXX</entry>
<entry key='geocoder.url'>https://eu1.locationiq.com/v1/reverse.php</entry>
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry>
<entry key='geocoder.key'>XXXXXXXXXXXX</entry>
<entry key='notificator.types'>telegram,...</entry>
<entry key='notificator.telegram.key'>XXXXXXXXXXXXX</entry>
<entry key='notificator.telegram.chatId'>XXXXXXXXXXX</entry>
<entry key='notificator.types'>telegram,web,mail,sms,firebase</entry>
<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.from'>mymail@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>mymail@gmail.com</entry>
<entry key='mail.smtp.password’>XXXXXX</entry>
</properties>
any help?
Have you tried searching? This has been discussed countless number of times.
can you please give me just a guideline to search
Search for "Waiting for changelog lock".
Thank you very much I solved the problem. But when I add gmail config lines to my xml the service wont start I have to remove the lines in orther to work I got ( he server is temporarily unable to service your request due to maintenance downtime or capacity problems) in my browser.
Probably means you misconfigured something. For example, I see that you're using incorrect quote here:
<entry key='mail.smtp.password’>XXXXXX</entry>
Hi, my traccar service stopped after adding gmail config lines to traccar.xml.
Logs show :
I have tried to remove the added lines save the file and restart but nothing still stopped:
my xml file is as this:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'> <properties> <entry key='config.default'>./conf/default.xml</entry> <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry> <entry key='database.url'>jdbc:mysql://localhost:/traccar?allowPublicKeyRetrieval=true&serverTimezone=UTC&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry> <entry key='database.user'>traccar</entry> <entry key='database.password'>XXXXXXXX</entry> <entry key='geocoder.enable'>true</entry> <entry key='geocoder.type'>XXXXXXXX</entry> <entry key='geocoder.url'>https://eu1.locationiq.com/v1/reverse.php</entry> <entry key='geocoder.onRequest'>true</entry> <entry key='geocoder.ignorePositions'>true</entry> <entry key='geocoder.key'>XXXXXXXXXXXX</entry> <entry key='notificator.types'>telegram,...</entry> <entry key='notificator.telegram.key'>XXXXXXXXXXXXX</entry> <entry key='notificator.telegram.chatId'>XXXXXXXXXXX</entry> <entry key='notificator.types'>telegram,web,mail,sms,firebase</entry> <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.from'>mymail@gmail.com</entry> <entry key='mail.smtp.auth'>true</entry> <entry key='mail.smtp.username'>mymail@gmail.com</entry> <entry key='mail.smtp.password’>XXXXXX</entry> </properties>
any help?