Traccar does not display server access panel.

Hello.
Server on AWS with Ubuntu server 20.04 and mysql

When entering by web / app does not go beyond the circle rotating

Down here part of the log and as I have confirmed my traccar xml

<?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>

    <!--

    This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-file/

    -->

    <!-- Configuración para utilizar Mysql (MariaDB) https://www.traccar.org/mysql/ -->

    <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccarDB?allowPublicKeyRetrieval=true&amp;useSSL=false&amp;serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>traccar1</entry>
    <entry key='database.password'>xxxxxxx</entry>

   <!--Parámetro para Borrado automático de histórico a 90 días -->
   
   <entry key='database.historyDays'>90</entry>
   
   <!--Boolean flag to save original message from device in HEX format in position attributes. -->
   
   <entry key='database.saveOriginal'>true</entry>

   <!--Configuración para la geolocalización inversa -->

   <entry key='geocoder.enable'>true</entry>
   <entry key='geocoder.type'>nominatim</entry>
   <entry key='geocoder.url'>http://eu1.locationiq.com/v1/reverse.php</entry>
   <entry key='geocoder.key'></entry>
   <entry key='geocoder.language'>es</entry>
   <entry key='geocoder.onRequest'>true</entry>
   <entry key='geocoder.processInvalidPositions'>true</entry>
   <entry key='geocoder.reuseDistance'>200</entry>
   <entry key='geocoder.ignorePositions'>true</entry>

   <!--Habilitar subsistema de eventos -->

   <entry key='event.enable'>true</entry>
   
   <!-- Configuración para reportes y eventos -->

   <entry key='filter.enable'>true</entry>
   <entry key='filter.invalid'>true</entry>
   <entry key='filter.zero'>true</entry>
   <entry key='filter.distance'>10</entry>

   <!-- Los duplicados se filtran por tiempo  -->

   <entry key='filter.duplicate'>true</entry>

   <!-- Filtrado por si hay dato de velocidad irreal -->

   <entry key='filter.maxSpeed'>25000</entry>
   <entry key='coordinates.filter'>1</entry>
   <entry key='coordinates.minError'>20</entry>
   <entry key='coordinates.maxError'>30000</entry>
   <entry key='filter.future'>86400</entry>
   <entry key='filter.skipLimit'>300</entry>
   
   <!-- Habilita el evitar filtrar mensajes pese a cumplir las condiciones si llevan los atributos listados -->

   <entry key='filter.skipAttributes.enable'>true</entry>
   <entry key='filter.skipAttributes'>alarm,ignition,result,status,battery,power,event</entry>
   
   <!-- Configuración para que mande la dirección configurada  en vez de 127.0.0.1 -->

   <entry key='web.timeout'>300000</entry>
   <entry key='web.url'></entry>
   <entry key='web.enable'>true</entry>
   <entry key='web.port'>8082</entry>
   <entry key='web.path'>./web</entry>
   <entry key='web.debug'>true</entry>
   <entry key='logger.level'>all</entry>

   <!-- Configuración varia -->
   <!-- Para que Traccar calcule según los atributos -->

   <entry key='processing.computedAttributes.enable'>true</entry>
   
   <!-- Activar copiar atributos que no estén presentes en todos los mensajes. Habilitar y pasar lista de atributos -->

   <entry key='processing.copyAttributes.enable'>true</entry>
   <entry key='processing.copyAttributes'>power,ignition,battery,status,io155,io249,io246,io251</entry>
   
   <!--Habilita el salvar la IP -->

   <entry key='processing.remoteAddress.enable'>true</entry>

<!-- Habilita el procesar las horas de motor, para mantenimientos -->

   <entry key='processing.engineHours.enable'>true</entry>

   <!-- Configurar en nivel de logs -->

   <entry key='logger.enable'>true</entry>
   <entry key='logger.level'>info</entry>
   <entry key='logger.file'>./logs/tracker-server.log</entry>
   <entry key='logger.rotate'>true</entry>

   <!-- Configuración de tiempo por la que se controla el cambio de estado de dispositivo a "Desconocido" (En Segundos) -->

   <entry key='status.timeout'>120</entry>

   <!-- Configuración de tiempo por la que se controla el cambio de estado de dispositivo de "Desconocido" a Desconectado (En Segundos) -->

   <entry key='server.timeout'>240</entry>

</properties>
adrianr3 years ago

hi, i dont think it can reach DB

try changing this line

<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccarDB?allowPublicKeyRetrieval=true&amp;useSSL=false&amp;serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>

into this one

<entry key='database.url'>jdbc:mysql://localhost/traccarDB?serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>

Adrian thank you for your prompt response.

I'll try to change that line.

Otherwise I attach my tracker-server.log by this means.

https://transfer.sh/C37d/tracker-server.log

adrianr3 years ago

seems ok to me, i remember having the same problem, my server is up and running for some time now, 3y maybe, and i cant remember how i fixed that, also on a vps at Hetzner

i also documented every step, ill try to find the doc and submit my steps