On 1/3/07, chiangf <[EMAIL PROTECTED]> wrote:
This is the first time when I'm actually trying to install/run
turbogears on a remote server (Ubuntu Dapper) rather than on my own
machine during testing.
I think I installed everything properly and I simply did a tg-admin
quickstart (to minimize extraneous errors). But when I run: python
start-myproj.py, I get the following error:
2007-01-03 18:11:39,444 cherrypy.msg INFO CONFIG: Server parameters:
2007-01-03 18:11:39,445 cherrypy.msg INFO CONFIG: server.environment:
development
2007-01-03 18:11:39,445 cherrypy.msg INFO CONFIG:
server.log_to_screen: True
2007-01-03 18:11:39,445 cherrypy.msg INFO CONFIG: server.log_file:
2007-01-03 18:11:39,446 cherrypy.msg INFO CONFIG:
server.log_tracebacks: True
2007-01-03 18:11:39,446 cherrypy.msg INFO CONFIG:
server.log_request_headers: True
2007-01-03 18:11:39,446 cherrypy.msg INFO CONFIG:
server.protocol_version: HTTP/1.0
2007-01-03 18:11:39,446 cherrypy.msg INFO CONFIG: server.socket_host:
2007-01-03 18:11:39,447 cherrypy.msg INFO CONFIG: server.socket_port:
8080
2007-01-03 18:11:39,447 cherrypy.msg INFO CONFIG: server.socket_file:
2007-01-03 18:11:39,447 cherrypy.msg INFO CONFIG: server.reverse_dns:
False
2007-01-03 18:11:39,448 cherrypy.msg INFO CONFIG:
server.socket_queue_size: 5
2007-01-03 18:11:39,448 cherrypy.msg INFO CONFIG: server.thread_pool:
10
Exception in thread CPHTTPServer Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/usr/lib/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpserver.py",
line 114, in _start_http
self.httpserver.start()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpwsgiserver.py",
line 312, in start
worker.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
error: can't start new thread
Does anyone know how to fix this?
It seems your CP can't fork could you try running one of the
standalone CP test apps to see if it's a problem with TG itself, I'm
thinking is an issue with the package and/or it's dependencies.
On the other hand I'm not sure how up to date are the ubuntu packages,
what version of TG is this?
Also, how does this whole thing work? I've seen documentation
regarding how to proxy tg with apache (or lighttpd). But when I ran it
on my computer (as localhost), I never needed to mess with the apache
webservers. What is the apache for?
answering your second question TG works on top of Cherrypy which
amoung other features has a lightweigth http server, this is what your
running on "localhost" what your saying about apache and the other
deployment methods is to put CP in "proxy mode" so messages can get
into apache then to CP for being process and then back to apache and
the web client.
there are many way to do deployment but by default CP uses the
internal server and that is why there is no problem.
Thanks so much!
Frank
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---