mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 18:05:58 +03:00
[GH-ISSUE #836] Internal Error in stats view #745
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#745
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 @fionnb on GitHub (Feb 18, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/836
Hi, on a fresh 1.4.3 install I get errors in the stats module.
AttributeError: 'NoneType' object has no attribute 'text'i went digging a bit and had it dump the command, which is:
rrdtool xport --start -1week --end 1455825274 DEF:size_recv=/mail/modoboa/stats/global.rrd:size_recv:AVERAGE CDEF:size_recvpm=size_recv,60,* XPORT:size_recvpm:"Empfangsgr\xc3\xb6sse" DEF:size_sent=/mail/modoboa/stats/global.rrd:size_sent:AVERAGE CDEF:size_sentpm=size_sent,60,* XPORT:size_sentpm:"Versendegr\xc3\xb6sse"Apparently, when using this command, the result will not contain any 't' fields:
... and the subsequent code fails. I wonder what goes wrong while constructing the command?
Can I do anything to make it work properly?
Using rrdtool 1.5.5 btw.
@tonioo commented on GitHub (Feb 19, 2016):
Indeed, it looks pretty strange... Could you try with an older version of rrdtool (like 1.4.7) ?
@fionnb commented on GitHub (Feb 21, 2016):
confirmed: appears in 1.4.7 and is missing in 1.5.5.
@tonioo commented on GitHub (Feb 21, 2016):
Looks like the output is a bit different with 1.5.5. Anyway, 1.5.5 should have a working JSON output (unlike 1.4.7), I'll make a change to use it if present.
@fionnb commented on GitHub (Feb 22, 2016):
I get it that 1.4.4 does not have the fix yet?
@tonioo commented on GitHub (Feb 22, 2016):
You're right. The stats plugin has its own repository (https://github.com/modoboa/modoboa-stats) so this issue is misplaced.
@fionnb commented on GitHub (Feb 22, 2016):
I am sorry then. Should I open an issue there or just wait for an update to appear?
Feel free to close this issue if inappropriate.
@tonioo commented on GitHub (Feb 22, 2016):
Don't worry, I'm going to move this issue.
@tonioo commented on GitHub (Feb 22, 2016):
This issue was moved to modoboa/modoboa-stats#11