Hello!
I did everythng step by step following your instruction
Fnd get this trouble
Nov 24 08:56:03 traccar sshd[6466]: Invalid user user from 164.92.242.15 port 50476
Nov 24 08:56:03 traccar sshd[6466]: pam_unix(sshd:auth): check pass; user unknown
Nov 24 08:56:03 traccar sshd[6466]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=164.92.242.15
Nov 24 08:56:03 traccar traccar[6454]: 2021-11-24 08:56:03 ERROR: Main method error - - SAXParseException (... < Config:39 < Context:273 < Main:120 < ...)
Nov 24 08:56:03 traccar traccar[6454]: Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Configuration file is not a valid XML document
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.Main.run(Main.java:147)
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.Main.main(Main.java:106)
Nov 24 08:56:03 traccar traccar[6454]: Caused by: java.lang.RuntimeException: Configuration file is not a valid XML document
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.config.Config.<init>(Config.java:54)
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.Context.init(Context.java:273)
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.Main.run(Main.java:120)
Nov 24 08:56:03 traccar traccar[6454]: ... 1 more
Nov 24 08:56:03 traccar traccar[6454]: Caused by: java.util.InvalidPropertiesFormatException: jdk.internal.org.xml.sax.SAXParseException;
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.load(PropertiesDefaultHandler.java:85)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/java.util.Properties.loadFromXML(Properties.java:986)
Nov 24 08:56:03 traccar traccar[6454]: at org.traccar.config.Config.<init>(Config.java:39)
Nov 24 08:56:03 traccar traccar[6454]: ... 3 more
Nov 24 08:56:03 traccar traccar[6454]: Caused by: jdk.internal.org.xml.sax.SAXParseException;
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.ParserSAX.panic(ParserSAX.java:652)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.Parser.ent(Parser.java:1981)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.Parser.step(Parser.java:466)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:498)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:411)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:374)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.impl.SAXParserImpl.parse(SAXParserImpl.java:97)
Nov 24 08:56:03 traccar traccar[6454]: at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.load(PropertiesDefaultHandler.java:83)
Nov 24 08:56:03 traccar traccar[6454]: ... 5 more
Nov 24 08:56:03 traccar systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
My config file is below
<?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>&serverTimezone=UTC
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>traccar</entry>
<entry key='database.password'>*******</entry>
</properties>
The error is telling you exactly what the problem is. Your XML is invalid.
Hello!
I did everythng step by step following your instruction
Fnd get this trouble
My config file is below
<?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>&serverTimezone=UTC <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry> <entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry> <entry key='database.user'>traccar</entry> <entry key='database.password'>*******</entry> </properties>