Traccar Server Configuration

Sumit6 years ago

Hi Anton,

I have setup the Traccar latest version on new VM (AWS EC2) and my database is on another VM. And I am using this configuration-

<?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.path'>./web</entry>
        <entry key='web.debug'>true</entry>
        <entry key='web.console'>true</entry>
        <entry key='web.port'>8082</entry>
        <entry key='geocoder.enable'>false</entry>
        <entry key='logger.file'>./logs/tracker-server.log</entry>
        <entry key='database.driver'>com.mysql.jdbc.Driver</entry> <entry
key='database.url'>jdbc:mysql://VM_IP:3306/traccar?allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
        <entry key='database.user'>root</entry>
        <entry key='database.password'>****</entry>
</properties>

Is this correct because I am getting failed to connect database server? Should I need to install java on database server also?
What do you suggest?

Anton Tananaev6 years ago

You don't need Java on the database side. If your config doesn't work, it means either parameters are incorrect or connection is blocked.

Sumit6 years ago

Is the databaseURL is right? I mean that I need to use IP Address or DNS.
I am having this error:
Image

Anton Tananaev6 years ago

You can use either.

Sumit6 years ago

It is still the same error. Should I change into the tracker-server.jar file? Or I need to build the code because I am using just latest downloaded jar file.

Sumit6 years ago

Are you there?
I am not finding what the error is because I can login into the mysql server with the same credential.
And web is not being showed also. I have upload the web into traccar-web and opened the port as 8082.

Sumit6 years ago

Now, it is working.

Sumit6 years ago

It is logging the device information now but it is showing unknown device but the device is registered. How is this possible?