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

Migrating and updating Ackee screwed up unique visitor count #305

Closed
CookedApps opened this issue Dec 26, 2021 · 4 comments
Closed

Migrating and updating Ackee screwed up unique visitor count #305

CookedApps opened this issue Dec 26, 2021 · 4 comments
Labels

Comments

@CookedApps
Copy link

🐞 Describe the bug

Unique visitor count exploded after migrating to another server and switching from Ackee version 3.1.0 to 3.3.0.
I moved my Ackee instance to another server and bumped up the version of Ackee and MongoDB. I restored the database using mongorestore, which worked like a charm. Everything worked just fine on the new server. I also changed the subdomain under which Ackee runs. We use use-ackee 3.0.0 in the frontend and I adjusted the URL there.

See screenshot below: You can clearly see the bump in unique visitors. I am 100% sure this is incorrect. This completely fucked up our statistics. Is there any way to recover the truth?

📚 To Reproduce

  • Use docker-compose for deployment
  • Migrate the entire MongoDB via mongodump and restore it with mongorestore
  • Fire up the new deployment with the restored database
  • See what happens

💡 Expected behavior

  • Unique visitors are counted corretly

🖼️ Screenshots

Bildschirmfoto 2021-12-26 um 10 59 03

⚙️ Environment

  • Installation: Docker-Compose
  • Ackee version: 3.3.0
  • MongoDB: 5.0
  • use-ackee: 3.0.0
@CookedApps CookedApps added the bug label Dec 26, 2021
@CookedApps
Copy link
Author

This might be related to #304

@CookedApps CookedApps changed the title Migrating to a new server screwed up the unique visitor count Migrating and updating Ackee screwed up unique visitor count Dec 26, 2021
@electerious
Copy link
Owner

Does this only affect existing statistics in the history or also new visits?

@CookedApps
Copy link
Author

@electerious
It only affects new visits. The statistics prior to the peak you see in my screenshot are correct, and the peak is incorrect (seemingly non-unique visitors).

I switched back to version 3.1.1 which fixed new visits, but the peak still remains.
Haven't tested it with version 3.2.0 but 3.3.0 is definitely broken.

I need a fix which corrects this peak. Otherwise, my total statistics will be useless forever.

@electerious
Copy link
Owner

There shouldn't be any changes related to the unique visitor count in 3.2.0 and 3.3.0. I'm not sure why this happened. Restarting the server will create a new salt and all upcoming visitors will be tracked as unique. But this should only affect the current day (the day of the restart). Your peak is way too high to say that it's just because of the new salt.

I'm closing this issue, because there's currently nothing I can do. Fixing #304 could help and make this less likely to happen.

I need a fix which corrects this peak. Otherwise, my total statistics will be useless forever.

The only way to do so is to delete all records in the database of that day.

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

No branches or pull requests

2 participants