Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #543 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Random site death

Reported by: jtate@… Owned by: anonymous
Priority: normal Milestone:
Component: CherryPy Version:
Severity: normal Keywords:


Using SVN turbogears, I occasionally get this after a few page reloads:

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Page handler: <bound method ShowHelp.index of <telepath.modules.help.help.ShowHelp object at 0xb7460e8c>>
Traceback (most recent call last):
  File "/home/jtate/devel/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", line 99, in _run
  File "/home/jtate/devel/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", line 247, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in index
  File "/home/jtate/devel/turbogears/turbogears/controllers.py", line 189, in expose
    func, tg_format, html, fragment, *args, **kw)
  File "/home/jtate/devel/turbogears/turbogears/database.py", line 193, in run_with_transaction
    retval = func(*args, **kw)
  File "/home/jtate/devel/turbogears/turbogears/controllers.py", line 206, in _execute_func
    return _process_output(tg_format, output, html, fragment)
  File "/home/jtate/devel/turbogears/turbogears/controllers.py", line 69, in _process_output
  File "/home/jtate/devel/turbogears/turbogears/view.py", line 60, in render
    return engine.render(info, format, fragment, template)
  File "/usr/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg/turbokid/kidsupport.py", line 122, in render
    tclass = self.load_template(template)
  File "/usr/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg/turbokid/kidsupport.py", line 96, in load_template
    mod = _freshen_template(package, basename, tfile, classname)
  File "/usr/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg/turbokid/kidsupport.py", line 44, in _freshen_template
    if _freshen_bases(bases, saved_mtime) or saved_mtime < mtime:
  File "/usr/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg/turbokid/kidsupport.py", line 28, in _freshen_bases
    mtime = os.stat(sys.modules[modname].__file__).st_mtime
KeyError: 'telepath.templates.master'

Powered by CherryPy 2.2.0beta

I do not have to change any of the underlying files to get this to happen. Just reload the same page, and it will fail.

Change History

comment:1 Changed 13 years ago by jtate@…

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

Does not seem to happen with TurboKid?==0.9.1dev-r787.

Note: See TracTickets for help on using tickets.