Hi
i installed traccar server v4 and when i try to start service, it not runing
● traccar.service - traccar
Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-03-20 11:39:07 UTC; 4min 35s ago
Process: 1103 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FAIL
Main PID: 1103 (code=exited, status=1/FAILURE)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: at org.traccar.Main.run(Main.java:152)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: at org.traccar.Main.main(Main.java:104)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: Caused by: java.lang.NullPointerException
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: at org.traccar.helper.Log.setupDefaultLogger(Log.java:160)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: at org.traccar.Context.init(Context.java:361)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: at org.traccar.Main.run(Main.java:110)
Mar 20 11:39:07 lab.amnir.mr traccar[1103]: ... 1 more
Mar 20 11:39:07 lab.amnir.mr systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 11:39:07 lab.amnir.mr systemd[1]: traccar.service: Unit entered failed state.
Mar 20 11:39:07 lab.amnir.mr systemd[1]: traccar.service: Failed with result 'exit-code'.
my EXML file
<?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='web.port'>80</entry>
<entry key='geocoder.enable'>false</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?serverTimezone=UTC&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>myusername</entry>
<entry key='database.password'>userpasword</entry>
<entry key='server.timeout'>120</entry>
Help please
Have you changed the default.xml config file?
the default.xml config file
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='web.enable'>true</entry>
<entry key='web.port'>8082</entry>
<entry key='web.path'>./web</entry>
<entry key='web.cacheControl'>max-age=3600,public</entry>
<entry key='geocoder.enable'>false</entry>
<entry key='geocoder.type'>google</entry>
<entry key='logger.enable'>true</entry>
<entry key='logger.level'>info</entry>
<entry key='logger.file'>./logs/tracker-server.log</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.future'>86400</entry>
<entry key='event.enable'>true</entry>
<entry key='event.ignoreDuplicateAlerts'>true</entry>
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='processing.engineHours.enable'>true</entry>
<entry key='media.path'>./media</entry>
<entry key='notificator.types'>web,mail</entry>
<entry key='server.statistics'>https://www.traccar.org/analytics/</entry>
<entry key='commands.queueing'>true</entry>
<entry key='database.ignoreUnknown'>true</entry>
<entry key='database.generateQueries'>true</entry>
<entry key='database.changelog'>./schema/changelog-master.xml</entry>
<entry key='database.loginUser'>
.........................................
Hi
i installed traccar server v4 and when i try to start service, it not runing
my EXML file
<?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='web.port'>80</entry> <entry key='geocoder.enable'>false</entry> <entry key='database.driver'>com.mysql.jdbc.Driver</entry> <entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?serverTimezone=UTC&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry> <entry key='database.user'>myusername</entry> <entry key='database.password'>userpasword</entry> <entry key='server.timeout'>120</entry>
Help please