Hello!

I'm trying to deploy a application with SCGI/WSGIServer lighttpd but
it fails to start. I've followed the guide at 
http://docs.turbogears.org/1.0/LightTPD.
Its the part when creating the new startup script that everything
fails.  The controller name is correct but it just stalls.

Here are the details of my setup:
OS: FreeBSD 6.2
Lighttpd: lighttpd-1.4.18
Output from tg-admin info:
http://www.mindwipe.org/~hapan/tg/tg-admin-info.txt  (TurboGears
1.0.4b2)
I'm running SQLAlchemy 0.4x with Elixir 0.4 on top.




Here is the output:
[EMAIL PROTECTED] ~/site]$ ./live-site.py
^C2007-12-08 22:33:17 : WSGIServer starting up
2007-12-08 22:33:17,800 cherrypy.msg INFO ENGINE: <Ctrl-C> hit:
shutting down autoreloader
2007-12-08 22:33:17,806 cherrypy.msg INFO ENGINE: CherryPy shut down
2007-12-08 22:33:17 : WSGIServer starting up
2007-12-08 22:33:17,807 scgi-wsgi INFO WSGIServer starting up
2007-12-08 22:33:17 : Failed to bind socket (Address already in use),
exiting
2007-12-08 22:33:17,809 scgi-wsgi ERROR Failed to bind socket (Address
already in use), exiting

When i just try to start it, the program runs but there is no output.
I've checked sockstats
to see if its listening on port 4000 but it isnt.  When i then try to
abort it by pressing Ctrl+c
it prints out the startup info and that it fails to bind the socket.

I dont have anything listening on port 4000, not before, not meanwhile
and nothing after.


After this i've tried to print out some junk to see what happenes in
the start up script:

---8<---SCGI-startup script at http://docs.turbogears.org/1.0/LightTPD
-----
from rattpresent.controllers import Root
cherrypy.root = Root()
print "1"
cherrypy.server.start(initOnly=True, serverClass=None)
print "2"
WSGIServer(application=wsgiApp).run()
---------------------------------------------------------------------------------
>8------------

Now the output looks like this:


[EMAIL PROTECTED] ~/site]$ ./live-rattpresent.py
1
(short delay, 2-3 seconds)
1

And it just hangs there again until i press ctrl+c....

^C2
2007-12-08 22:45:21 : WSGIServer starting up
2007-12-08 22:45:21 : Failed to bind socket (Address already in use),
exiting
[EMAIL PROTECTED] ~/NEW/RattPresent]$ 2007-12-08 22:45:22,054 cherrypy.msg
INFO ENGINE: <Ctrl-C> hit: shutting down autoreloader
2007-12-08 22:45:22,061 cherrypy.msg INFO ENGINE: CherryPy shut down
2
2007-12-08 22:45:22 : WSGIServer starting up
2007-12-08 22:45:22,062 scgi-wsgi INFO WSGIServer starting up
2007-12-08 22:45:22 : Failed to bind socket (Address already in use),
exiting
2007-12-08 22:45:22,064 scgi-wsgi ERROR Failed to bind socket (Address
already in use), exiting

After a Ctrl+c it seems to move on to
WSGIServer(application=wsgiApp).run()...

Anyone got any idea how to fix this?

best regards,
Adam





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to