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

Nutrition stats for categories are not shown anymore #6244

Closed
stephanegigandet opened this issue Jan 4, 2022 · 1 comment · Fixed by #6246 or #6232
Closed

Nutrition stats for categories are not shown anymore #6244

stephanegigandet opened this issue Jan 4, 2022 · 1 comment · Fixed by #6246 or #6232
Labels
🐛 bug This is a bug, not a feature request. Nutrition facts

Comments

@stephanegigandet
Copy link
Contributor

stephanegigandet commented Jan 4, 2022

What

To Reproduce

https://world.openfoodfacts.org/category/cakes

Expected behavior

Nutrition stats for the category should be displayed.

@stephanegigandet stephanegigandet added 🐛 bug This is a bug, not a feature request. Nutrition facts labels Jan 4, 2022
@stephanegigandet
Copy link
Contributor Author

This is due to a mongodb timeout when generating stats:

completed products: 68100
completed products: 68110
[Tue Jan  4 17:44:07 2022] gen_top_tags_per_country.pl: MongoDB::DatabaseError: operation exceeded time limit

In fact in production this script has failed since April 2021:

-rw-r--r-- 1 off users 24 Apr 19 2021 categories_nutriments_per_country.mo.sto
-rw-r--r-- 1 off users 24 Apr 19 2021 categories_nutriments_per_country.hn.sto
-rw-r--r-- 1 off users 374175 Apr 19 2021 categories_nutriments_per_country.th.sto
stephane@off1:/srv/off/scripts/equadis-import$ ls -lrt /srv/off/index/

The problem shows now because we moved the location of the generated files to /srv/off/data/ ... and they are not generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. Nutrition facts
Projects
None yet
1 participant