Integrity error on the second run

3 views
Skip to first unread message

uri.m

unread,
Feb 11, 2010, 11:41:19 AM2/11/10
to AppRocket
When I run daemon.py for the second time (after downloading into
mysql) I get:

2010-02-11 19:32:48,562 ERROR TOMainLogEntity Receive TOMainLogEntity:
error
Traceback (most recent call last):
File "E:\GAE-Server-Side\tawkonserver\rocket\station.py", line 419,
in receive
_updates
self.write_receive_state(cur, kind, last_timestamp)
File "E:\GAE-Server-Side\tawkonserver\rocket\station.py", line 689,
in write_r
eceive_state
cur.execute("""INSERT INTO rocket_station (kind, receive_state)
VALUES (%s,
%s)""", (kind, receive_state))
File "C:\Python25\Lib\site-packages\MySQLdb\cursors.py", line 166,
in execute
self.errorhandler(self, exc, value)
File "C:\Python25\Lib\site-packages\MySQLdb\connections.py", line
35, in defau
lterrorhandler
raise errorclass, errorvalue
IntegrityError: (1062, "Duplicate entry 'TOMainLogEntity' for key
'PRIMARY'")
2010-02-11 19:32:48,625 INFO TOMainLogEntity Receive TOMainLogEntity:
batch end,
count=51

The config for the entity is RECEIVE only... Anyone get an idea?

Reply all
Reply to author
Forward
0 new messages