picar / pyrrd

Automatically exported from code.google.com/p/pyrrd
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

OSError: [Errno 7] Argument list too long error on rrd update #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version: 0.1.0

After buffering a LOT of values (probably a few thousand) we run into:

 error:   File "/usr/lib/python2.6/dist-packages/pyrrd/rrd.py", line 200, in update
 error:     self.backend.update(debug=debug, *data)
 error:   File "/usr/lib/python2.6/dist-packages/pyrrd/backend/external.py", line 82, in update
 error:     _cmd('update', parameters)
 error:   File "/usr/lib/python2.6/dist-packages/pyrrd/backend/external.py", line 16, in _cmd
 error:     close_fds=close_fds)
 error:   File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
 error:     errread, errwrite)
 error:   File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
 error:     raise child_exception
 error: OSError: [Errno 7] Argument list too long

If you really have to execute rrdtool on the commandline (I'm wondering if the 
rrdtool module handles this sanely) you might want to ensure that the command 
line is not too long.

Original issue reported on code.google.com by bernd.ze...@gmail.com on 2 Dec 2011 at 9:20