[Django]-Python.exe the fastcgi process exited unexpectedly

3๐Ÿ‘

โœ…

I had the exact same problem as you but managed to solve this by using Python 3.4.2 version. Follow the exact steps as described in this tutorial Django with IIS and avoid using Python 3.5 or above because it seems that there are compatibility issues. The stack I used was IIS version 10, Windows 10, Python 3.4.2 and Django 1.11.2.

๐Ÿ‘คabautista

0๐Ÿ‘

Upgrading wfastcgi to the latest version

pip install wfastcgi --upgrade

solved it for me: Python 3.6.6, wfastcgi 3.0.0

๐Ÿ‘คayorgo

-1๐Ÿ‘

In my Case I was facing the same issue i.e. enter image description here

Mine is a Django App used for APIs that queries data from back-end platforms. This issue was only for specific filters that the API was using in queries while for other values in filters it worked great.

My Config file did not have a fastCgi tag and I added below mentioned part to top of system.webServer in config file. Yes off course it gave few errors here and there corresponding to activityTimeout and requestTimeout. Tried increasing up-to 900 and 601 respectively and then it worked for me. But could not understand cause of the issue as query that API was running for which i was facing this issue was not taking that long at all. I would like to understand that.

<fastCgi>
   <application fullPath="D:\Python34\python.exe|D:\Python34\Scripts\wfastcgi.py" 
        arguments=""
        maxInstances="4"
        idleTimeout="300"
        activityTimeout="900"
        requestTimeout="601"
        instanceMaxRequests="10000"
        protocol="NamedPipe"
        flushNamedPipe="false">
   </application>
</fastCgi>
๐Ÿ‘คBarsha

Leave a comment