Modify

Opened 6 years ago

Closed 6 years ago

#2558 closed defect (fixed)

RuntimeError: Could not open file /var/trac/project/cache/tracmetrixplugin/dailybacklog.png

Reported by: ruben@… Owned by: khundeen
Priority: normal Component: TracMetrixPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

How to Reproduce

While doing a GET operation on /pdashboard, Trac issued an internal error.

Just click on dashboard tab. I was on debian etch and upgraded to lenny in order to have the good library versions.

Request parameters:

{'imagename': None}

System Information

Trac 0.11b1
Python 2.4.4 (#1, Jan 3 2008, 13:33:54)
[GCC 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)]
setuptools 0.6c7
SQLite 2.8.17
pysqlite 1.0.1
Genshi 0.4.4
Subversion 1.4.4 (r25188)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/main.py", line 398, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/main.py", line 195, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracMetrixPlugin-0.1.5-py2.4.egg/tracmetrixplugin/web_ui.py", line 122, in process_request
    return self._render_view(req, db)
  File "/usr/lib/python2.4/site-packages/TracMetrixPlugin-0.1.5-py2.4.egg/tracmetrixplugin/web_ui.py", line 196, in _render_view
    daily_backlog_chart_path = tkt_group_metrics.get_daily_backlog_chart(backlog_history)
  File "/usr/lib/python2.4/site-packages/TracMetrixPlugin-0.1.5-py2.4.egg/tracmetrixplugin/model.py", line 488, in get_daily_backlog_chart
    fig.savefig(path)
  File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line 759, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 478, in print_figure
    self.renderer._renderer.write_png(str(filename))
RuntimeError: Could not open file /var/trac/project/cache/tracmetrixplugin/dailybacklog.png


Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by anonymous

To fix it :
chmod 777 /var/trac/project/cache/tracmetrixplugin/

comment:2 Changed 6 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from khundeen. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.