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 #391 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] attempt to start TG server without autoreload.package results in endless loop

Reported by: ischenko@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: major Keywords: quick
Cc:

Description

When trying to start TG server without autoreload.package setting but in development mode server enters endless loop:

D:\>bookswap-start.py
2006/01/12 12:38:40 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/12 12:38:40 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
2006/01/12 12:38:41 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/12 12:38:41 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
2006/01/12 12:38:43 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/12 12:38:43 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
2006/01/12 12:38:52 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/12 12:38:52 HTTP INFO CherryPy shut down
Unhandled exception in thread started by
Error in sys.excepthook:

That's on Windows XP box.

Other potentially relevant settings:

server.environment="development"
server.logFile="server.log"

Attachments

startup.patch Download (1.3 KB) - added by Joost 13 years ago.
added egg support, see cherrypy ticket #273
startup.2.patch Download (1.1 KB) - added by Joost 13 years ago.
Whoopsie, forgot to review my own patch :)

Change History

comment:1 Changed 13 years ago by kevin

  • Keywords quick added

this is probably a very simple thing in startup.py

Changed 13 years ago by Joost

added egg support, see cherrypy ticket #273

Changed 13 years ago by Joost

Whoopsie, forgot to review my own patch :)

comment:2 Changed 13 years ago by joost

  • Summary changed from attempt to start TG server without autoreload.package results in endless loop to [PATCH] attempt to start TG server without autoreload.package results in endless loop

PS. woudn't it be more logical to just turn the autoloader 'off' when it isn't configured?

comment:3 Changed 13 years ago by kevin

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

I decided to go with a hybrid approach. If autoreload.package isn't set at all, you'll get an error message and it will exit. If it's an empty value (0, False, ""), you'll get the cherrypy default behavior. Otherwise, it will operate as it has been doing.

this is committed in [544].

Note: See TracTickets for help on using tickets.