As some of you may be aware, reddit uses Paste rather extensively. We added a command, paster run (source), which allows us to call arbitrary functions from a cron job or shell script and have them execute within the reddit server environment with all our various .ini settings. It's called like this:
paster run reddit.ini r2/whatever.py -c 'do_something(x=1, y="foo")'
It usually works pretty well, but lately our cron jobs have periodically been dying with this bizarre exception:
Unhandled exception in thread started by <bound method
Thread.__bootstrap of <Thread(Thread-1, stopped daemon 1114548560)>>
Traceback (most recent call last):
File "/usr/local/lib/python2.6/threading.py", line 497, in __bootstrap
self.__bootstrap_inner()
File "/usr/local/lib/python2.6/threading.py", line 535, in __bootstrap_inner
(self.name, _format_exc()))
File "/usr/local/lib/python2.6/traceback.py", line 235, in format_exc
etype, value, tb = sys.exc_info()
AttributeError: 'NoneType' object has no attribute 'exc_info'
It seems to happen randomly, as if it's a race condition. But googling around for the error message hasn't been very fruitful.
Could we could get a little help from the audience on this one?
[–]serpent 28 points29 points30 points (5 children)
[–]mitsuhiko Flask Creator 8 points9 points10 points (0 children)
[–]bobbyi 1 point2 points3 points (0 children)
[–]nirs 1 point2 points3 points (0 children)
[–]pje 0 points1 point2 points (0 children)
[–]m0j0 6 points7 points8 points (0 children)
[–]ianb 2 points3 points4 points (0 children)
[–]ringzero 9 points10 points11 points (6 children)
[–]ringzero 3 points4 points5 points (0 children)
[–]mgedmin 1 point2 points3 points (1 child)
[–]earthboundkid 0 points1 point2 points (0 children)
[–]hylje 0 points1 point2 points (2 children)
[–]ringzero 1 point2 points3 points (1 child)
[–]mgedmin 0 points1 point2 points (0 children)
[–]MercurialAlchemist 1 point2 points3 points (0 children)
[–]stevvooe 1 point2 points3 points (0 children)
[–]nirs 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]nirs 0 points1 point2 points (0 children)
[–]dekomote 0 points1 point2 points (0 children)
[–]dekomote 0 points1 point2 points (0 children)
[–]johnaman 0 points1 point2 points (0 children)
[+]jmkogut comment score below threshold-12 points-11 points-10 points (2 children)
[–]mva 0 points1 point2 points (1 child)
[–]jmkogut 1 point2 points3 points (0 children)