id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 12678,Error message when diagram image cannot be written,Ryan J Ollos,Jun Omae,"I just took over maintenance of a server and saw the following error after running the TracAdmin `deploy` command. [[Image(Screen Shot 2016-02-21 at 23.22.15.png)]] Here is the traceback from the logs: {{{ 2016-02-22 02:06:16,740 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File ""/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/web/main.py"", line 512, in _dispatch_request dispatcher.dispatch(req) File ""/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/web/main.py"", line 221, in dispatch resp = chosen_handler.process_request(req) File ""/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/admin/web_ui.py"", line 120, in process_request path_info) File ""build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py"", line 137, in render_admin_panel self._parse_request(req) File ""build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py"", line 700, in _parse_request self._update_diagram(req, params) # not return File ""build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py"", line 455, in _update_diagram self._create_diagram_image(path, dir, script, errors) File ""build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py"", line 462, in _create_diagram_image fd, tmp = mkstemp(suffix='.png', dir=dir) File ""/usr/lib64/python2.6/tempfile.py"", line 293, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags) File ""/usr/lib64/python2.6/tempfile.py"", line 228, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 13] Permission denied: '/htdocs/tracworkflowadmin/tmp7GtMK8.png' }}} The error was due to the following ownership permissions: {{{#!sh $ ls -ald htdocs/tracworkflowadmin drwxr-xr-x 5 root apache 4096 Feb 22 02:13 htdocs/tracworkflowadmin }}} The fix was straightforward after looking at the code to see what it was doing. {{{#!sh $ ls -ald htdocs/tracworkflowadmin drwxr-xr-x 5 apache apache 4096 Feb 22 02:13 htdocs/tracworkflowadmin }}} I was just thinking that this scenario is probably not all that uncommon, and it might be nice to provide an error message to guide the user to a solution in this case.",enhancement,new,normal,TracWorkflowAdminPlugin,normal,,,,1.0