-
Notifications
You must be signed in to change notification settings - Fork 494
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
Ahoy error (ID constraint) #379
Comments
Yes it occurred with me, I thought I'll post thanks @differentreality for pointing it out.But @ChrisBr this error is weird in a sense that it occurs and on page refresh it is gone.Please look into in this in greater depth :) |
@differentreality Ok, I can add the suggested debug option in a first step |
is this still an issue for anyone? |
For me in development, ALL the time! |
@differentreality you are using sqlite or mysql? |
@hennevogel Do we know if this also happens in production? |
If you tell me which error it is I can look. @differentreality's paste isn't working anymore |
We should examine if this only happens with sqlite or also with MySQL/Production! If yes I would say we should definitely fix this for V1.0 |
This also happens in production.
|
@hennevogel @differentreality Tried it on https://events.opensuse.org/ 10 times and no exception occurred! @hennevogel could you please look into db if events get logged? |
Update: Now we have these two solutions:
@differentreality @hennevogel What do you think? |
BTW I also get ActiveRecord::StatementInvalid (SQLite3::ConstraintException: PRIMARY KEY must be unique: INSERT INTO "visits" ("browser", "country", "device_type", "id", "ip", "landing_page", "os", "started_at", "user_agent", "user_id", "visitor_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)): |
I'm seeing a bunch of errors like #379 (comment) in my log/production.log file for https://osem.seagl.org/ . For example:
(snipped). Also, for one other table:
(also snipped) I'm running OSEM from 124d275 |
ankane/ahoy#32 is now closed and there are new versions of ahoy gem. Worth updating and re-checking if this issue is still valid? |
Ahoy is a performance train wreck. IMO the campaigns feature isn't worth the trouble, but even if it is, I'm confident it can be handled much more performantly without Ahoy. I'll extract my WIP changes out to a commit and link here. (I've removed Ahoy for LFNW branch). |
Closed with #2205. |
@ChrisBr as we discussed a couple of times we continue having this error:
http://paste.opensuse.org/83963228
It just occured over 4 times while creating a new proposal or registering for a conference.
It also seems to be a problem with other people:
ankane/ahoy#32
The text was updated successfully, but these errors were encountered: