mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #661] Statistics 1.2.0-rc2 no curves in returned JSON #621
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#621
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smarek on GitHub (Dec 19, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/661
error in javascript console
Uncaught TypeError: Cannot read property 'data' of undefined graphic.js:60lines in graphic.js file
And in JSON data returned by
GET /stats/graphs/?gset=mailtrafficparams
averagetrafficandaveragetrafficsizehas curves as empty arrayRRD files are in
/tmp/modoboawith user/group the same as apache/wsgi user, two RRD files non-zero size, nothing else@smarek commented on GitHub (Dec 19, 2014):
In fact, I can see the same issue on demo, http://modoboa.sys4.de/stats/#graphs/?gset=mailtraffic logged in as admin, so it's known upstream bug probably?
@tonioo commented on GitHub (Dec 20, 2014):
Actually this issue triggers when there is no data to show... (which is the case of the demo since there is no mail traffic on it)
@smarek commented on GitHub (Dec 20, 2014):
Which seems strange to me, as the server is under quite heavy load (10+ domains, 100+ email accounts, 10000+ emails a day), RRD files are non-zero, but the server returns no data to show in statistics?
Is it possible that modoboa is looking for RRD files in another location? I've tried to run it directly, instead of WSGI apache wrapper, and turning on debug and template debug, however no issues appeared in logs at all.
@tonioo commented on GitHub (Dec 21, 2014):
Modoboa will look at the location you configured through the admin panel. Have you properly configured this part ?
@smarek commented on GitHub (Dec 21, 2014):
Yes, the path
/tmp/modoboa/matches the application settings. Folder containsglobal.rrdand for each active domaindomain.tld.rrd, with permissions that allow global read and execute on path. Is there something I'm missing?@tonioo commented on GitHub (Dec 21, 2014):
Have you tried with fix I pushed for #660 ?
@smarek commented on GitHub (Dec 21, 2014):
Yes, with current upstream version, the statistics suffer from the same issue
@tonioo commented on GitHub (Dec 21, 2014):
One more check: have you installed the rrdtool binary ?
@smarek commented on GitHub (Dec 21, 2014):
As documentation states
apt-get install python-rrdtool, yes, I've done that.I suppose, output of
python manage.py logparserwouldn't include output such as[rrd] VERBOSE events at 1419176640 already recorded in RRDif I didn't do so@tonioo commented on GitHub (Dec 21, 2014):
I'm talking about rrdtool, not the python module:
I should complete the documentation.
@smarek commented on GitHub (Dec 21, 2014):
Well, that solved the issue ! Thank you a lot, this should definitely be in documentation.