Intermittently, and always during periods of high load we'll get a 500
Server error from the Admin 'Manage Jobs' list.  In the logs the
stacktrace looks like: http://paste.pocoo.org/show/351374/

Attached is the patch JJ provided to work around jobs without histories,
but I thought I'd bring it up here too in case either others are seeing
it or someone knows a root cause.

Thanks!

-- 
Ry4an Brase                                         612-626-6575
Software Developer                                  Application Development
University of Minnesota Supercomputing Institute    http://www.msi.umn.edu
# HG changeset patch
# User JJ <j...@msi.umn.edu>
# Date 1299791693 21600
# Node ID c9e807155b6d4c43e609e7bbae42060f8dc32fa0
# Parent  c8c7eb5ec4200201c66a8111133abc3aa2c03e8e
Check for NoneType history.

Tried to look at the jobs listing for galaxy and got a server error:

Error - <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'user'
URL: https://galaxy.msi.umn.edu/admin/jobs
...
File
'/website/galaxy.msi.umn.edu/PRODUCTION/database/compiled_templates/admin/jobs.mako.p
y', line 84 in render_body
  if job.history.user:
AttributeError: 'NoneType' object has no attribute 'user'


Evidently, there is a job without an associated history.  So, I added a check for
job.history:

diff -r c8c7eb5ec420 -r c9e807155b6d templates/admin/jobs.mako
--- a/templates/admin/jobs.mako	Fri Feb 18 14:53:35 2011 -0500
+++ b/templates/admin/jobs.mako	Thu Mar 10 15:14:53 2011 -0600
@@ -47,7 +47,7 @@
                     %endif
                 </td>
                 <td>${job.id}</td>
-                %if job.history.user:
+                %if job.history and job.history.user:
                     <td>${job.history.user.email}</td>
                 %else:
                     <td>anonymous</td>
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Reply via email to