[GH-ISSUE #646] Statistics: Internal Error #606

Closed
opened 2026-02-27 11:12:37 +03:00 by kerem · 5 comments
Owner

Originally created by @piwats on GitHub (Dec 8, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/646

Hey,

with 1.2.0-rc1 I'm getting this error when trying to access the new statistics pages:

Internal Server Error: /modoboa/stats/graphs/
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/views.py", line 110, in graphs
    tplvars['graphs'] = gsets[gset].export(tplvars["domain"], start, end)
  File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/graphics.py", line 146, in export
    "curves": graph.export(rrdfile, start, end)
  File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/graphics.py", line 79, in export
    code, output = exec_cmd(cmd)
  File "/usr/lib64/python2.7/site-packages/modoboa/lib/sysutils.py", line 32, in exec_cmd
    process = subprocess.Popen(cmd, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings

What did I wrong?

Originally created by @piwats on GitHub (Dec 8, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/646 Hey, with 1.2.0-rc1 I'm getting this error when trying to access the new statistics pages: ``` Internal Server Error: /modoboa/stats/graphs/ Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view return view_func(request, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view return view_func(request, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/views.py", line 110, in graphs tplvars['graphs'] = gsets[gset].export(tplvars["domain"], start, end) File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/graphics.py", line 146, in export "curves": graph.export(rrdfile, start, end) File "/usr/lib64/python2.7/site-packages/modoboa/extensions/stats/graphics.py", line 79, in export code, output = exec_cmd(cmd) File "/usr/lib64/python2.7/site-packages/modoboa/lib/sysutils.py", line 32, in exec_cmd process = subprocess.Popen(cmd, **kwargs) File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings ``` What did I wrong?
kerem closed this issue 2026-02-27 11:12:37 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 9, 2014):

Hi,
have you installed rrdtool?

<!-- gh-comment-id:66248841 --> @tonioo commented on GitHub (Dec 9, 2014): Hi, have you installed rrdtool?
Author
Owner

@piwats commented on GitHub (Dec 9, 2014):

Yes, rrdtool-1.4.8.

<!-- gh-comment-id:66252253 --> @piwats commented on GitHub (Dec 9, 2014): Yes, rrdtool-1.4.8.
Author
Owner

@tonioo commented on GitHub (Dec 9, 2014):

Is it possible to have an access to your instance? I need the full context in order to understand what's happening.

<!-- gh-comment-id:66270367 --> @tonioo commented on GitHub (Dec 9, 2014): Is it possible to have an access to your instance? I need the full context in order to understand what's happening.
Author
Owner

@piwats commented on GitHub (Dec 9, 2014):

This would be possible. However, magically the graphs appeared - they look fantastic.

May it be that the format of the aggregated stats files somehow has changed?

<!-- gh-comment-id:66272733 --> @piwats commented on GitHub (Dec 9, 2014): This would be possible. However, magically the graphs appeared - they look fantastic. May it be that the format of the aggregated stats files somehow has changed?
Author
Owner

@tonioo commented on GitHub (Dec 9, 2014):

Strange... the format haven't changed. If you encouter this issue in the future, please try to indicate all the steps (actions, values, etc.)

<!-- gh-comment-id:66275070 --> @tonioo commented on GitHub (Dec 9, 2014): Strange... the format haven't changed. If you encouter this issue in the future, please try to indicate all the steps (actions, values, etc.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#606
No description provided.