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.
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'
y', line 84 in render_body
AttributeError: 'NoneType' object has no attribute 'user'
Evidently, there is a job without an associated history. So, I added a check for
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 @@
- %if job.history.user:
+ %if job.history and job.history.user:
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: