Forward enable not working

IsraelLopez8 years ago

Hello

This is my config file. I can not understand why forwand is not working. I hope you can help

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <!--

    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/

    -->

    <entry key="config.default">./conf/default.xml</entry>
	<entry key='forward.enable'>true</entry>
	<entry key='forward.url'>http://url/index.php?data={uniqueId};{latitude};{longitude};{deviceTime};{fixTime};{valid};{altitude};{speed};{course};{statusCode};{attributes};</entry>

</properties>
Anton Tananaev8 years ago

Where is your database config? Traccar won't work without it.

IsraelLopez8 years ago

Thanks for answering.

I have this line

        <entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
	<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
	<entry key='database.user'>user</entry> 
	<entry key='database.password'>password</entry>
Anton Tananaev8 years ago

In your original post you don't have it. Can you please upload your full real config somewhere and logs as well. Just don't post it directly into the comment.

IsraelLopez8 years ago

Yes of course.

Sorry I can not find a way to upload a file

Thanks

IsraelLopez8 years ago

Sorry But I have a big problem here. This is my config file

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <!--

    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/

    -->

    <entry key="config.default">./conf/default.xml</entry>
	
	 
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
	<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/tc?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES</entry>
	<entry key='database.user'>user</entry> 
	<entry key='database.password'>password</entry>
	 
	<entry key='forward.enable'>true</entry>
	<entry key='forward.url'>http://url/index.php?data={uniqueId};{latitude};{longitude};{deviceTime};{fixTime};{valid};{altitude};{speed};{course};{statusCode};{attributes};</entry>

</properties>
Anton Tananaev8 years ago

There are plenty of services where you can upload files. For example, DropBox.

Anton Tananaev8 years ago

Have you restarted the service after changing config file?

Anton Tananaev8 years ago

Also, what is "http://url/"?

IsraelLopez8 years ago

My tracker-server.log has a lot of :

2017-06-28 23:00:03  WARN: Unknown device - 1632001029 (187.216.167.124)
2017-06-28 23:00:04 DEBUG: [5E8FC76D: 5082 < 200.68.138.142] HEX: 8305133309479401010102009b5953e27c5953e27c0c407451c26d04830002534
e0000001900dc09200014ffb90f0912000e0c040000000000000000000000000000000000
2017-06-28 23:00:04  WARN: Unknown device - 1333094794 (200.68.138.142)

That is why I need forward.

IsraelLopez8 years ago

I just change my real url in this post In my config file is a something like http://127.0.0.1/index.php

Thanks

Anton Tananaev8 years ago

That is why your forwarding doesn't work. It's an unknown device. You should've said from the beginning. You have a warning in your log clearly indicating the issue.

IsraelLopez8 years ago

Really sorry. I found my problem database corruption. Thank you so much for you time and help