Sharing a devices

Samwise 2 years ago

Hi,

When I try to share a device in version 5.11 I get the following error:

Duplicate entry 'xxx:xxx' for key 'tc_users.email' - SQLIntegrityConstraintViolationException (... < QueryBuilder:469 < DatabaseStorage:95 < DeviceResource:216 < ...)

(I removed some data and replaced by “x”)

Anybody familiar with this error or has any documentation on sharing devices.

Greetings,
Sam

Track-trace 2 years ago

This topic is the same https://www.traccar.org/forums/topic/device-link-sharing/ when he clicks a second time on share link. You can read from the error there was already a link created earlier.

When the link is created check under Settings/users and remove all created user links. Then try it again.

Samwise 2 years ago

Thanks, found that.. only thing now is to get the link copied, because that seems to fail.

Track-trace 2 years ago

When you read the forum you would read that it only works when the connenction to the server is SSL

Anton Tananaev 2 years ago

We already have some fixes coming in the next release soon.

Samwise 2 years ago

I did read that, and I have a https connection with valid certificate. But hopefully the fixes in the next release will fix it as Anton wrote.

Track-trace 2 years ago

Ok so it didnt work with valid cert also ? I thought it would be better that the link could just be copied from the created user account.