Closed raphaelmonrouzeau closed 14 years ago
Do you have a simple sample TurboGears application I can use to test and verify a fix for this?
I'm unfortunately not particularly familiar with TurboGears or Paste
I'll make one sure. I'll update the thread by then.
I have seen this issue as well, so I thought I'd take a moment to show you how to reproduce it.
Setup pylons and activate the virtualenv (get go-pylons.py and run it).
pylons go-pylons pylons-env source pylons-env/bin/activate
Create a minimal project:
paster create -t pylons_minimal --no-interactive spawningbug
Cd into the created directory and edit the server:main
section of development.ini to look like this:
[server:main] use = egg:Spawning host = 127.0.0.1 port = 5000
Run the following:
paster serve development.ini
This is where the crash is.
Hey, sorry for late response,
you can find an archive of a turbogears2.1 app there: http://web2.fr.milibris.com:10000/example.tgz
with a relocatable virtualenv there: http://web2.fr.milibris.com:10000/tg2env.tgz
along with the install script (if ever the virtualenv doesn't work): http://web2.fr.milibris.com:10000/tg2-bootstrap.py.gz
you can find relevant information about building all these there: http://www.turbogears.org/2.1/docs/main/DownloadInstall.html
in the example you'll find a development.ini file with 2 [server] sections, one uses the paste's http server, the other is using spawning (which the latest version is in the virtualenv). So you can switch between both.
Last note: you do ./start development.ini, ./stop development.ini or use paster serve development.ini as you wish.
This should be resolved with SHA: 596efb94854641da33ae150d36a4371768cbb5b8, don't have the time to test it myself locally
This works for me, thanks.
I'm using "paster serve" to launch a TurboGears application, configured to use spawning and get this exception: 387, in run_controller setproctitle("spawn: controller " + args["argv_str"]) KeyError: 'argv_str'
I'm using this configuration: [server:main] use = egg:Spawning host = 0.0.0.0 port = 8000 num_processes = 12 num_threads = 6
And I launch using this shell script:
!/bin/sh