nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
382 stars 83 forks source link

Gnuplot error when building reports #90

Open anentropic opened 11 years ago

anentropic commented 11 years ago

I'm intermittently getting errors like this when trying to build HTML reports:

Creating html report: ...Traceback (most recent call last):
  File "/project/.venv/bin/fl-build-report", line 7, in <module>
    execfile(__file__)
  File "/project/.venv/src/funkload/scripts/fl-build-report", line 26, in <module>
    main()
  File "/project/.venv/src/funkload/src/funkload/ReportBuilder.py", line 304, in main
    css_file=options.css_file)()
  File "/project/.venv/src/funkload/src/funkload/ReportRenderHtmlBase.py", line 131, in render
    self.createRstFile()
  File "/project/.venv/src/funkload/src/funkload/ReportRenderHtmlBase.py", line 88, in createRstFile
    f.write(unicode(self).encode("utf-8"))
  File "/project/.venv/src/funkload/src/funkload/ReportRenderRst.py", line 654, in __repr__
    self.renderMonitors()
  File "/project/.venv/src/funkload/src/funkload/ReportRenderRst.py", line 482, in renderMonitors
    charts = self.createMonitorCharts()
  File "/project/.venv/src/funkload/src/funkload/ReportRenderHtmlBase.py", line 162, in createMonitorCharts
    charts[host]=self.createMonitorChart(host)
  File "/project/.venv/src/funkload/src/funkload/ReportRenderHtmlGnuPlot.py", line 616, in createMonitorChart
    gnuplot(gplot_path)
  File "/project/.venv/src/funkload/src/funkload/ReportRenderHtmlGnuPlot.py", line 51, in gnuplot
    "\n" + str(output))
RuntimeError: Failed to run gnuplot cmd: cd /results_path; gnuplot /results_path/33.33.33.34_MonitorNetwork.gplot

plot "/results_path/33.33.33.34_MonitorNetwork.data" u 1:2 title "Out" with lines lw 2, "" u 1:3 title "In" with lines lw 2
                                                                                                                                                            ^
"/results_path/33.33.33.34_MonitorNetwork.gplot", line 10: warning: Skipping data file with no valid points

plot "/results_path/33.33.33.34_MonitorNetwork.data" u 1:2 title "Out" with lines lw 2, "" u 1:3 title "In" with lines lw 2
                                                                                                                                                                                                 ^
"/results_path/33.33.33.34_MonitorNetwork.gplot", line 10: warning: Skipping data file with no valid points

plot "/results_path/33.33.33.34_MonitorNetwork.data" u 1:2 title "Out" with lines lw 2, "" u 1:3 title "In" with lines lw 2
                                                                                                                                                                                                  ^
"/results_path/33.33.33.34_MonitorNetwork.gplot", line 10: x range is invalid

It seems to be due to my MonitorNetwork.data file looking like:

TIME NETOUT NETIN
11:55:44 None None

I have entries with receiveBytes receivePackets etc in my stats.xml so I'm not sure right now where the None values are coming from, haven't looked too deep yet