You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
When I try to view page stats for a time range longer than about six months, the page spins seemingly indefinitely (even overnight) without actually producing data.
This instance is self-hosted on a t2.micro EC2 instance. One possibility is that calculating the aggregation is too resource-intensive, though top shows that there is plenty of available memory (and even more available swap space). If that is the issue, though, there should at least be a reasonable error message, though realistically, I'd be comfortable waiting (just not indefinitely).
I would be happy to do additional work to try to narrow this down, troubleshoot, etc. However, I do not know anything about Plausible internals.
Expected behavior
The report for the indicated time range should load, preferably in a reasonable amount of time.
According to the browser console the query times out after ten seconds.
You might get more info (which query, where in the code, etc.) from the server logs:
$ cd hosting # or wherever you cloned plausible/community-edition
$ docker compose logs
There are two possible improvements:
make timeout configurable or remove it completely in the community edition
Activity
[-]Can't view stats for a long time range[/-][+]Can't view stats for a longisj time range[/+][-]Can't view stats for a longisj time range[/-][+]Can't view stats for a longish time range[/+]ruslandoga commentedon Jun 21, 2024
👋 @jonahgreenthal
Thank you for the report!
According to the browser console the query times out after ten seconds.
You might get more info (which query, where in the code, etc.) from the server logs:
There are two possible improvements:
jonahgreenthal commentedon Jun 21, 2024
Thanks! Here's what I see in the logs:
Of the options you say, I'd definitely prefer one that lets me see the info rather than an error :-)
ruslandoga commentedon Sep 25, 2024
👋 @jonahgreenthal
A way to increase task timeout value #4494 has been released in v2.1.2: #4618
To increase the timeout value, you would need to add it in the query string to
CLICKHOUSE_DATABASE_URLlike in #3311 (comment)jonahgreenthal commentedon Sep 27, 2024
Thank you! I think it's working, but I'm not totally sure because I no longer remember exactly what operation I was trying to do befor :-/
ruslandoga commentedon Sep 27, 2024
I'm going to close it then since another user reported that the task timeout workaround is working in #4360 (reply in thread) :)