Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry for key 'tracker_cookies_uuid_unique' #323

Open
karlmonson opened this issue Sep 12, 2017 · 5 comments

Comments

@karlmonson
Copy link

I'm getting this issue when a user is visiting the same page multiple times. Any ideas for how to fix?

@jakebooy2
Copy link

I'm getting this issue too :/

@alexandreMesle
Copy link

I had this isssue too in a developpment environment, but emptying the cookies in the navigator solved the problem. I don't know if this problem can happen in production.

@emadrashad
Copy link

i think that this problem related to local development !

@felipesilvame
Copy link

felipesilvame commented Jun 18, 2018

Just figured that the cookie length is trimmed to 191 chars, some cookies has 244 chars, a simple fix is increasing the tracker_cookie uuid length to 244.
capture

I've created a gist... Greetings!
https://gist.github.com/felipesilvame/c85ab9ab3805e9182a5f20a8d58125fa

Edit: this is a limitation for MySQL utf8mb4 limit...
https://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes

@MadMikeyB
Copy link

Thanks @felipesilvame - this helped a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants