Art S R wrote: > Hi all, > > When I shutdown Freevo and the webserver plugin is stopped, I get the > following messages in webserver-1000.log: > > 2009-03-03 00:21:32,420 DEBUG webserver.py (113): main() starting > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/freevo/helpers/webserver.py", > line 114, in <module> > main() > File "/usr/lib/python2.5/site-packages/freevo/helpers/webserver.py", > line 108, in main > reactor.run() > File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line > 1048, in run > self.mainLoop() > --- <exception caught here> --- > File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line > 1060, in mainLoop > self.doIteration(t) > File > "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", > line 104, in doSelect > [], timeout) > File "/usr/lib/python2.5/site-packages/kaa/notifier/main.py", line > 258, in signal_handler > notifier.shutdown() > File "/usr/lib/python2.5/site-packages/kaa/notifier/nf_wrapper.py", > line 131, in shutdown > sys.exit(0) > exceptions.SystemExit: 0 > 2009-03-03 00:22:19,514 DEBUG webserver.py (115): main() finished > > As you can see above, the webserver was started successfully at > 00:21:32,420. When the Freevo menu is displayed, I select the Shutdown > option immediately and the ensuing traceback messages are displayed. I > don't see anything to indicate what may have caused the exception > condition. The webserver appears to be functioning correctly other than > for this error when the webserver is stopped. > > Any ideas what may be causing this? Thanks.
Yes, it is because Twisted does not like being stopped with a SIGINT. In the stop function /usr/bin/freevo the line that says: for signal in (SIGINT, SIGTERM, SIGKILL): should be changed to: for signal in (SIGTERM, SIGINT, SIGKILL): Then the webserver will close down cleanly. BTW This is already in svn. Duncan ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users