Problem Duplicate entry

islam bahaz3 years ago

Hello
I have 5 devices in my account but today
The account is empty there is no devices
And when i want to enter new device it say
Duplicate entry
Where is the probleme please

Anton Tananaev3 years ago

Have you checked the database? Duplicate entry means your devices are already registered on the server.

islam bahaz3 years ago

I gave a account in demo traccar
How can i check the data base

Anton Tananaev3 years ago

Unfortunately we don't provide support for demo servers. You can try another demo server.

Abe3 years ago

Hi @Anton, it's happening to me too. Last Friday everything was working fine. Today I can enter at the demo server, but no device is shown. When I try to register again the devices, it returns a "Duplicate Key" error. So the devices still remain on the DB but the client seems to have an issue.

If it's useful for you, here's the error:

Duplicate entry 'NAME_OF_MY_DEVICE' for key 'uniqueid' - SQLIntegrityConstraintViolationException (... < QueryBuilder:460 < DatabaseStorage:57 < DataManager:263 < ...)

I have tried the modern and the classic theme with the same result. Also an iOS app called "GPS Pro" that uses traccar API. It's the same issue on every platform.

Anton Tananaev3 years ago

Also the main demo server?

Abe3 years ago

Yes. It's on the on the main demo server (https://demo.traccar.org/).

Thanks!

Abe3 years ago

I just attached an image where you can view the demo server url, the error, and the devices window empty.
screen_capture

Anton Tananaev3 years ago

Try different server.

Abe3 years ago

But the current devices are already configured to use this server (demo.traccar.org). How can we delete our existing devices in the server to be able to create new devices with the same Ids? Even deleting the account and creating again is feasibly to solve it. Thanks.

yarpen2 years ago

Hi
I have the same problem on my private server (raspberry pi). the device save data to the database, but is not displayed in "the manager" on webside ( I have two devices, one is displayed and the other is not, and when I try to add them, I have info "Duplicate entry 'NAME_OF_MY_DEVICE' for key 'uniqueid'.......)

Anton Tananaev2 years ago

It means that the device already exists, so you need to link it to your user instead of creating a new one.