Can not log my position since 3.3

pierrot109 years ago

Good day,
I update traccar 3.2 to 3.3 and I also installed traccar web ui.
I folowed that procedure
http://traccar.litvak.su/installation.html
For my traccar 3.3 I also applay the specification for 3.2 and I am not sure if I did it well.

Since when I copy past that URL
http://bipme.dyndns.org:5055/?id=865067020424381&valid=1&lat=46.201251&lon=6.102916&speed=2.41&altitude=434.03&heading=311.609985&batt=70&desc=GPS%20localisation&timestamp=2016-02-14%2011:17:21

there is no new entrie in the positions table.

I check my log and I can see that message "WARN: Field 'deviceId' doesn't have a default value"

Here us my log:

2016-02-14 16:04:12 DEBUG: [7046E53A: 5055 < 178.198.72.62] HEX: 474554202f3f69643d383635303637303230343234333831266c61743d34362e323031323531266c6f6e3d362e3130323931362673706565643d322e343126616c7469747564653d3433342e30332668656164696e673d3331312e3630393938352674696d657374616d703d323031362d30322d313425323031313a31373a323120485454502f312e310d0a486f73743a206269706d652e64796e646e732e6f72673a353035350d0a557365722d4167656e743a204d6f7a696c6c612f352e3020284d6163696e746f73683b20496e74656c204d6163204f5320582031302e31313b2072763a34332e3029204765636b6f2f32303130303130312046697265666f782f34332e300d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c2a2f2a3b713d302e380d0a4163636570742d4c616e67756167653a2066722d43482c656e2d55533b713d302e372c656e3b713d302e330d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a436f6f6b69653a204757545f4c4f43414c453d64656661756c743b204a53455353494f4e49443d786e6a796635396b757675333934356b7a6e6964746577630d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a0d0a
2016-02-14 16:04:12 DEBUG: [7046E53A: 5055 > 178.198.72.62] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-02-14 16:04:12  INFO: [7046E53A] disconnected
2016-02-14 16:04:12  WARN: Field 'deviceId' doesn't have a default value - SQLException (... < QueryBuilder:431 < DataManager:307 < DefaultDataHandler:27 < ...)
2016-02-14 16:04:12  INFO: [7046E53A] id: 1, time: 2016-02-14 11:17:21, lat: 46.20125, lon: 6.10292, speed: 2.4, course: 311.6
2016-02-14 16:05:35  INFO: [DEE0214F] connected
2016-02-14 16:05:40  INFO: [DEE0214F] disconnected

Did I missed something?

Cheers

pierrot109 years ago

I also replace and add this to my conf file

<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/nametable?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'>pass</entry>

I also give the correct username, password and table

pierrot109 years ago

One more info,
I installed traccar then I modified the conf file for traccar web ui before lunching the web page.
(I have not install traccar 3.3, then lunch the page then install traccar web)

JuVeNaL9 years ago

same problem for me .. if you find the solution ...

pierrot109 years ago

I drop the table positions, I stop and start traccar, refesh my page and now it's work.
Why should I drop the table positions to make it working?

Cheers

JuVeNaL9 years ago

how drop you the table positions ?
have you a commande line ?

Kind regards
JuVeNaL

Anton Tananaev9 years ago

You need some database tool. If you are using default H2 database, you can use H2 console. The easier option is to remove whole database as a file if you don't have any valuable data there.

JuVeNaL9 years ago

i did all but still same problem ... and nothing on the log file ...

Can you send me you traccar.xml file to compare ?

Kind regards
JuVeNaL

Anton Tananaev9 years ago

What do you mean by nothing? If the log is completely empty, it means server doesn't run at all. Then you need to check wrapper log file.

JuVeNaL9 years ago

no i will say ..no error that show the issue

JuVeNaL9 years ago

i find a error see here

2016-02-15 07:24:46  INFO: Memory limit heap: 58mb non-heap: 0mb
2016-02-15 07:24:46  INFO: Character encoding: UTF-8 charset: UTF-8
2016-02-15 07:24:46  INFO: Version: 3.2-SNAPSHOT
2016-02-15 07:25:25  WARN: Column "DEVICE_ID" not found; SQL statement:
SELECT id, protocol, device_id AS deviceId, serverTime, time AS deviceTime, time AS fixTime,
    valid, latitude, longitude, altitude, speed, course, address, other AS attributes
    FROM positions WHERE id IN (SELECT latestPosition_id FROM devices); [42122-190] - JdbcSQLException (... < QueryBuilder:61 < *:131 < DataManager:323 < ConnectionManager:55 < ...)
2016-02-15 07:25:27  INFO: Starting server...
2016-02-15 07:26:52  INFO: [3BC517D0] connected
2016-02-15 07:26:52 DEBUG: [3BC517D0: 8082 < 192.168.0.1] HEX: 474554202f3f69643d3737353930352674696d657374616d703d31343535353231323038266c61743d35302e3730383335333735266c6f6e3d342e31303630363138312673706565643d302e302662656172696e673d302e3026616c7469747564653d3131382e3026626174743d33342e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420352e302e313b20534d2d4e39313046204275696c642f4c5258323243290d0a486f73743a2076642d686f6d652e64796e646e732e6f72673a383038320d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2016-02-15 07:26:55  WARN: Unknown device - 775905 (192.168.0.1)
2016-02-15 07:27:34  INFO: [7B060194] connected
2016-02-15 07:27:34 DEBUG: [7B060194: 8082 < 192.168.0.1] HEX: 474554202f3f69643d3737353930352674696d657374616d703d31343535353231323038266c61743d35302e3730383335333735266c6f6e3d342e31303630363138312673706565643d302e302662656172696e673d302e3026616c7469747564653d3131382e3026626174743d33342e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420352e302e313b20534d2d4e39313046204275696c642f4c5258323243290d0a486f73743a2076642d686f6d652e64796e646e732e6f72673a383038320d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2016-02-15 07:27:34  WARN: Unknown device - 775905 (192.168.0.1)
2016-02-15 07:28:20  INFO: [0635B539] connected

what is the problem ?

pierrot109 years ago

Did you corretcly save your device with the Unique identifier?
it should be the EMEI.

JuVeNaL9 years ago

i use the unique ID generated bu TRACCAR android ..

Thanks for you help .. i appreciate

pierrot109 years ago

Correct me if I am wrong, from your domaine http://your domaine.com:8082/
you have to create a devise. Edit it.
I would control that under the field 'Unique identifiy' the ID is the same than your unique ID generated...

It's how I did, excpeted I ma using my own module with a EMEI SIM card.

In my point of view it look like if you have wrongly create your devise on the web site

JuVeNaL9 years ago

The only thin that i set as information is the name and "unique identify" that is generated by traccar android client .. i need to set other to test ?

My impression is that my traccar.xml file is not good
by this modification ... but i check .. and recheck i don't find what is miss ..
Can you copy the content of your traccar.xml to compare ?

Kind regards
JuVeNaL