Upgrade lost Graphs

28 views
Skip to first unread message

potter

unread,
Sep 11, 2014, 2:39:37 PM9/11/14
to bit...@googlegroups.com
I am in the process or upgrading and moving my Trac installation.  Moving from Windows, Python 2.5, Trac 0.12.2, Bitten 0.6b3 to Ubuntu, Python 2.7, Trac 1.0.1, Bitten 0.6.  So far everything is looking fine except for when I go to a Build Configuration page (e.g. http://host/trac/build/buildConfig) the graphs are missing.  The header for the graphs are there, and space where the graphs would appears but not even a bounding box.  

What might I be missing of what might I have done wrong?

If I go to http://host/trac/build/buildConfig/chart/test or http://host/trac/build/buildConfig/chart/lint on the old or the new host I get the same collection of data be be graphed.  If I examine the HTML on the new host where the chart's should be is an empty div:

<div id="chart_lint" style="height: 220px; width: 310px;"></div>

However on the old host the div has some canvas's and div's with all the data. 

<div id="chart_lint" style="height: 220px; width: 310px; position: relative;">
<canvas width="310" height="220">
</canvas>
<canvas width="310" height="220" style="position: absolute; left: 0px; top: 0px;">
</canvas>
<div class="tickLabels" style="font-size:smaller;color:#545454">
    ...
</div>
<div class="legend">
    ...
</div>
</div>

potter

unread,
Sep 12, 2014, 12:11:14 PM9/12/14
to bit...@googlegroups.com

"Or" that is, as in "What might I be missing or what might I have done wrong?"

Simon Cross

unread,
Sep 12, 2014, 7:50:41 PM9/12/14
to bit...@googlegroups.com
Hello

It looks like the Javascript that renders the charts isn't running. Do
you see any errors in the Javascript console?

Schiavo
Simon

potter

unread,
Sep 15, 2014, 2:21:48 PM9/15/14
to bit...@googlegroups.com
Sure enough:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://host/trac/chrome/bitten/excanvas.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://host/trac/chrome/bitten/jquery.flot.js

potter

unread,
Sep 15, 2014, 4:53:20 PM9/15/14
to bit...@googlegroups.com
Went looking for excanvas.js and jquery.flot.js.  Found them on the old host inside the bitten/htdocs directory, but they where not in the new hosts bitten/htdocs or anywhere else.

Tried to remember how I installed bitten (apt-get, ez_install or pip).  Using dpkg --list | grep bitten discovered I had used apt-get.

Uninstalled bitten and re-install using apt-get.  Checked the bitten/htdocs directory.  Still no excanvas.js or jquery.flot.js.

Uninstalled bitten using apt-get.  Installed bitten via:
Check bitten/htdocs, excanvas.js and jquery.flot.js now exist.

Re-imported the backup data from the old host and retest, and we have graphs.

Thanks.

Lee Begg

unread,
Sep 15, 2014, 5:19:21 PM9/15/14
to bit...@googlegroups.com
I had this problem before. Debian (and Debian-based distros) package flot and
other JS library separately. You will find them in /usr/share/javascript/. Flot
is in /usr/share/javascript/flot/

I created (or did the trac-bitten package to it?) symbolic links in
/usr/share/pyshared/bitten/htdocs/ to flot and excanvas and the plots worked
again.


Regards
Lee


On Mon, 15 Sep 2014 13:53:19 potter wrote:
> Went looking for excanvas.js and jquery.flot.js. Found them on the old
> host inside the bitten/htdocs directory, but they where not in the new
> hosts bitten/htdocs or anywhere else.
>
> Tried to remember how I installed bitten (apt-get, ez_install or pip).
> Using dpkg --list | grep bitten discovered I had used apt-get.
>
> Uninstalled bitten and re-install using apt-get. Checked the bitten/htdocs
> directory. Still no excanvas.js or jquery.flot.js.
>
> Uninstalled bitten using apt-get. Installed bitten via:
>
> - svn check-out http://svn.edgewall.org/repos/bitten/tags/0.6 bitten-0.6
> - cd bitten-0.6
> - sudo python setup.py install
>
> Check bitten/htdocs, excanvas.js and jquery.flot.js now exist.
>
> Re-imported the backup data from the old host and retest, and we have
> graphs.
>
> Thanks.
>
> On Monday, September 15, 2014 2:21:48 PM UTC-4, potter wrote:
> > Sure enough:
> >
> > Failed to load resource: the server responded with a status of 404 (Not
> > Found)
> > http://*host*/trac/chrome/bitten/excanvas.js
> > Failed to load resource: the server responded with a status of 404 (Not
> > Found)
> > http://*host*/trac/chrome/bitten/jquery.flot.js
Reply all
Reply to author
Forward
0 new messages