rpatterson / iiswsgi

Serve and deploy WSGI apps on Web Platform Installer and IIS.
http://pypi.python.org/pypi/iiswsgi
14 stars 6 forks source link

FCGI Process not launching under full IIS #1

Open rpatterson opened 12 years ago

rpatterson commented 12 years ago

The sample app will deploy just fine to IISExpress/Web Matrix, but when switched over to full IIS, it reports that the FCGI process exited prematurely. Even after instrumenting the very top of the script with writes to a file followed by flush() and fsync() the file still has nothing in it. So it seems like IIS is never actually launching the processs.

rpatterson commented 12 years ago

If anyone can test this and give some insight, it would be greatly appreciated.

rpatterson commented 12 years ago

From lambacck in #pyramid:

...Suspect that your problem with IIS proper may be a permission problem since the other web servers run as you and IIS proper runs as . On my dev machine where I have my virtualenv in c:\Users\username\Envs I ended up giving the SYSTEM user "Full Control" permission (which was probably too much but not accessible from web). Can't remember what perms I gave to IIS6 production server, but virtualenv is not in a users home directory. you might want to have pywin32 installed and use the win32traceutil to get debugging info out of the process early on of course I haven't actually installed or tried anything, this is based on other problems I've had working inside IIS.

rpatterson commented 12 years ago

@lambacck I was testing in wwwroot, not a user directory. But I also just tried giving SYSTEM and then EVERYONE "Full Control", I stopped, and restarted the site, and I still get the same error.

rpatterson commented 12 years ago

I also tried under various other directories including in the user directory.

rpatterson commented 12 years ago

On a fresh EC2 instance the non-virtualenv sample app works just fine, but the virutalenv pyramid app doesn't even launch python at all.