setup tracker-server-2.11

balasmeh89 9 years ago

Hello everybody

can please anyone help me how to run (tracker-server-2.11 ) i have database compatible with this version but i don't know how to run the jar file?

can show me steps to how i run it and connect to my database

Thank you

Anton Tananaev 9 years ago

You can just install version 2.12. It has the same database schema.

balasmeh89 9 years ago

Thank you for replay Mr Anton.

i have few questions and i hope you don't mind i ask it.

first :i install the traccar 2.12 and its work good

when i was change the traccar.cfg to connect to my mysql database

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

i got error to login by admin in localhost:8082

another thing i was test the traccar in my phone and i put ip of my laptop and i open port in router 5055 but its not show the device on map i was create device name and device identify in localhost:8082 and i was receive packge Hex in log file as shown below. but still nothing show on map.

2017-03-21 03:37:18 DEBUG: [B3A975CC: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:37:18  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:37:18  INFO: Closing connection by exception
2017-03-21 03:37:18  INFO: Closing connection by disconnect
2017-03-21 03:37:18 DEBUG: [A7694A03: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:37:18  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:37:18  INFO: Closing connection by exception
2017-03-21 03:37:18  INFO: Closing connection by disconnect
2017-03-21 03:37:18 DEBUG: [85C12BB0: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:37:18  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:37:18  INFO: Closing connection by exception
2017-03-21 03:37:18  INFO: Closing connection by disconnect
2017-03-21 03:37:18 DEBUG: [4E11CEC6: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:37:18  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:37:18  INFO: Closing connection by exception
2017-03-21 03:37:18  INFO: Closing connection by disconnect
2017-03-21 03:53:05 DEBUG: [311F9B49: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:05  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:05  INFO: Closing connection by exception
2017-03-21 03:53:05  INFO: Closing connection by disconnect
2017-03-21 03:53:05 DEBUG: [158178B9: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:05  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:05  INFO: Closing connection by exception
2017-03-21 03:53:05  INFO: Closing connection by disconnect
2017-03-21 03:53:05 DEBUG: [9128334A: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:05  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:05  INFO: Closing connection by exception
2017-03-21 03:53:05  INFO: Closing connection by disconnect
2017-03-21 03:53:07 DEBUG: [93872BE7: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:07  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:07  INFO: Closing connection by exception
2017-03-21 03:53:07  INFO: Closing connection by disconnect
2017-03-21 03:53:07 DEBUG: [AABFC140: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:07  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:07  INFO: Closing connection by exception
2017-03-21 03:53:07  INFO: Closing connection by disconnect
2017-03-21 03:53:07 DEBUG: [0D4B9530: 5055 <- 192.168.0.101] - HEX: 474554202f20485454502f312e310d0a486f73743a203139322e3136382e302e3130313a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e3029204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f35362e302e323932342e3837205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c20736463680d0a4163636570742d4c616e67756167653a20656e2d55532c656e3b713d302e382c61723b713d302e360d0a0d0a
2017-03-21 03:53:07  WARN: java.lang.NullPointerException (OsmAndProtocolDecoder.java:67)
2017-03-21 03:53:07  INFO: Closing connection by exception
2017-03-21 03:53:07  INFO: Closing connection by disconnect

thank you and i'm sorry for my long message

Anton Tananaev 9 years ago
  1. You should probably check logs for details about the error.

  2. The log doesn't have any messages from your phone.

balasmeh89 9 years ago

Thank you Mr Anton to reply to me i had already got one hex message from my phone . after Thant nothing get

but how about my to connect this server with my database ? is that correct away to change the traccar.cfg to connect to my mysql database

like when i was change the traccar.cfg to connect to my mysql database this?

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

"traccar" is my database name

thank you again.

balasmeh89 9 years ago

Thank you Mr Anton for what you share and help others its work now as prefect in H2 and my database.

god bless you .

Salman Raza 8 years ago

Hello everybody

can please anyone help me how to run (traccar-server-2.11)
In my website

Thank you

Anton Tananaev 8 years ago

Why do you want to use version 2.11?

Salman Raza 8 years ago

Becoz my tracking site supported traccar server 2.11

Anton Tananaev 8 years ago

There is no installer available for 2.11. I would recommend you to use 2.12. It's fully compatible with 2.11.

Salman Raza 8 years ago

Ok sir but which jre version supported?

Anton Tananaev 8 years ago

I believe for 2.12 it's Java 6 and above.

Salman Raza 8 years ago

Thanx sir but I am asking you sir how to configure in my website sir

Anton Tananaev 8 years ago

Then you are in the wrong thread.

Salman Raza 8 years ago

Am not using this server in web???