Closed laitaton closed 9 months ago
Hi @laitaton. Thanks for sharing this issue here.
I took the liberty of reformatting the logs a bit to make them easier to read.
It looks to me like the math worker isn't actually the problem, since the math updates are succeeding without issue. Moreover, the server logs suggest that it's the /api/v3/votes/famous
request that is erroring out with polis_err_famous_proj_get2 authorUid is not defined
.
A similar issue was resolved in a PR merged in Feb 18th of this year: https://github.com/compdemocracy/polis/issues/1508
What commit are you running on?
Suggestions:
Thanks again
Thank you @metasoarous for the help! The PR did help and now the conversation is running with math worker and data normally.
We're using commit: https://github.com/compdemocracy/polis/tree/5d031eda5362ab560f97e1ca49945af44186162a I tried first updating to latest edge, but was not able to overcome report page JS and CSS 404 errors. So I continue to use same commit as before, and made a patch file for this small change in server.ts: "authorUid"->"authoruid".
Expected behavior: Participation works and visualization is shown. Report page working normally.
Actual behavior: Participation fails to load. Browser shows error 500 and console logs
error3 loading conversation model
. Report page works when math calculations are finished.To Reproduce: Still trying to reproduce it in a testing environment.
Screenshots: Memory usage from start to turning math off again. Blue line is memory usage, green is requested, meaning manually given estimation for kubernetes scheduling. There is no limit, so the redline is at 0.![Memory](https://github.com/compdemocracy/polis/assets/91537360/4e4e24a8-e98d-444b-ba96-a148a4d5816a)
CPU usage seems to be fine.![CPU](https://github.com/compdemocracy/polis/assets/91537360/3627cb22-f2a8-4b7c-a64a-be75d147f1dc)
Additional context: We run Polis in a Kubernetes cluster in Google Cloud. The math worker is running on a node with 4 CPU and 16 GB of memory. It can use all of the node resources, other pods will be evicted to other nodes if needed. Does not seem to be out of memory error, see the screenshot of the math worker memory usage.
The error only happens when math is calculated for the conversation. That also means we can get the participation working again by removing math data from database and turning off the math worker. Of course after removing math data, report is not working. Only this conversation is influenced, others are fine.
I turn on the math worker once per day and the issue seems to persist, it occured for first time 2023-09-16.
Zid of the problematic conversation is 51.
Some logs from around the time of conversation breaking.
Math logs
Polis server logs