How can I solve 0x80070585 Error code on my Python Flask wfastcgi app? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!How to Compile Mod_Python 3.3.1 for Python 2.6 and Apache 2.2 on Windows?uWSGI cannot find “application” using Flask and VirtualenvCauses of crash doing matrix multiply in Python/mod_wsgi/apache appConfigure basic python 3.5, flask, uwsgi, nginx appFlask with python 3.5Nginx and uWSGI Flask app Connection Refusedasp.net core shows '0x80070002 HTTP Error 502.5Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlkApache Server through Time Out Connection error when load an app from a browserGunicorn with flask app returning 502 error

Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?

The logistics of corpse disposal

List of Python versions

3 doors, three guards, one stone

Can a USB port passively 'listen only'?

Using audio cues to encourage good posture

Why aren't air breathing engines used as small first stages

Do I really need recursive chmod to restrict access to a folder?

How to find out what spells would be useless to a blind NPC spellcaster?

What's the meaning of 間時肆拾貳 at a car parking sign

Is it true that "carbohydrates are of no use for the basal metabolic need"?

Dating a Former Employee

Using et al. for a last / senior author rather than for a first author

Selecting the same column from Different rows Based on Different Criteria

How can I (re)show post-installation notes?

Is the Standard Deduction better than Itemized when both are the same amount?

Short Story with Cinderella as a Voo-doo Witch

How come Sam didn't become Lord of Horn Hill?

How to call a function with default parameter through a pointer to function that is the return of another function?

If a contract sometimes uses the wrong name, is it still valid?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What is a non-alternating simple group with big order, but relatively few conjugacy classes?

Why is "Consequences inflicted." not a sentence?

How to react to hostile behavior from a senior developer?



How can I solve 0x80070585 Error code on my Python Flask wfastcgi app?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!How to Compile Mod_Python 3.3.1 for Python 2.6 and Apache 2.2 on Windows?uWSGI cannot find “application” using Flask and VirtualenvCauses of crash doing matrix multiply in Python/mod_wsgi/apache appConfigure basic python 3.5, flask, uwsgi, nginx appFlask with python 3.5Nginx and uWSGI Flask app Connection Refusedasp.net core shows '0x80070002 HTTP Error 502.5Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlkApache Server through Time Out Connection error when load an app from a browserGunicorn with flask app returning 502 error



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).



My stack



I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.



What I tried



  • Activating CGI service on IIS

  • Installing wfastcgi from https://pypi.org/project/wfastcgi/

  • Enabling wfastcgi with wfastcgi enable (and saved the output for the config file)

  • Deploying my app on wwwroot/myapp

  • Adding a web.config file on that myapp folder that looks like this:

<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:Program FilesPython37python.exe|C:Program FilesPython37Libsite-packageswfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>

<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="backend.wsgi.socketio" />
<add key="PYTHONPATH" value="C:inetpubwwwrootmyapp" />
</appSettings>
</configuration>


socketio is the name of my Flask app, everything is ok when I run the wsgi file "standalone".



  • Creating an app in IIS linked to that folder with the right physical path


    while testing app parameters, authentication step is OK, Authorization step raise a warning but not an error.




Result



When I try to reach my app I get a 500 HTTP error with the folowing 0x80070585 IIS error code.



When I "break" my web.config file (removing tag close for example), IIS tell me that the file is not well formed, so the file is reachable.



Since the error seems to come from the scriptProcessor, I double checked that both C:Program FilesPython37python.exe and C:Program FilesPython37Libsite-packageswfastcgi.py existed.
May IIS have access troubles?



I tried to inspect IIS logs, but that's not really verbose. I only have HTTP request logs.



Where should I dig to find more logs?



Thank you for yor help, note that I'm totally new to IIS and Microsoft servers, so I may have missed something big.










share|improve this question









New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

    – Lex Li
    Apr 11 at 13:35

















0















I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).



My stack



I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.



What I tried



  • Activating CGI service on IIS

  • Installing wfastcgi from https://pypi.org/project/wfastcgi/

  • Enabling wfastcgi with wfastcgi enable (and saved the output for the config file)

  • Deploying my app on wwwroot/myapp

  • Adding a web.config file on that myapp folder that looks like this:

<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:Program FilesPython37python.exe|C:Program FilesPython37Libsite-packageswfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>

<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="backend.wsgi.socketio" />
<add key="PYTHONPATH" value="C:inetpubwwwrootmyapp" />
</appSettings>
</configuration>


socketio is the name of my Flask app, everything is ok when I run the wsgi file "standalone".



  • Creating an app in IIS linked to that folder with the right physical path


    while testing app parameters, authentication step is OK, Authorization step raise a warning but not an error.




Result



When I try to reach my app I get a 500 HTTP error with the folowing 0x80070585 IIS error code.



When I "break" my web.config file (removing tag close for example), IIS tell me that the file is not well formed, so the file is reachable.



Since the error seems to come from the scriptProcessor, I double checked that both C:Program FilesPython37python.exe and C:Program FilesPython37Libsite-packageswfastcgi.py existed.
May IIS have access troubles?



I tried to inspect IIS logs, but that's not really verbose. I only have HTTP request logs.



Where should I dig to find more logs?



Thank you for yor help, note that I'm totally new to IIS and Microsoft servers, so I may have missed something big.










share|improve this question









New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

    – Lex Li
    Apr 11 at 13:35













0












0








0








I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).



My stack



I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.



What I tried



  • Activating CGI service on IIS

  • Installing wfastcgi from https://pypi.org/project/wfastcgi/

  • Enabling wfastcgi with wfastcgi enable (and saved the output for the config file)

  • Deploying my app on wwwroot/myapp

  • Adding a web.config file on that myapp folder that looks like this:

<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:Program FilesPython37python.exe|C:Program FilesPython37Libsite-packageswfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>

<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="backend.wsgi.socketio" />
<add key="PYTHONPATH" value="C:inetpubwwwrootmyapp" />
</appSettings>
</configuration>


socketio is the name of my Flask app, everything is ok when I run the wsgi file "standalone".



  • Creating an app in IIS linked to that folder with the right physical path


    while testing app parameters, authentication step is OK, Authorization step raise a warning but not an error.




Result



When I try to reach my app I get a 500 HTTP error with the folowing 0x80070585 IIS error code.



When I "break" my web.config file (removing tag close for example), IIS tell me that the file is not well formed, so the file is reachable.



Since the error seems to come from the scriptProcessor, I double checked that both C:Program FilesPython37python.exe and C:Program FilesPython37Libsite-packageswfastcgi.py existed.
May IIS have access troubles?



I tried to inspect IIS logs, but that's not really verbose. I only have HTTP request logs.



Where should I dig to find more logs?



Thank you for yor help, note that I'm totally new to IIS and Microsoft servers, so I may have missed something big.










share|improve this question









New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).



My stack



I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.



What I tried



  • Activating CGI service on IIS

  • Installing wfastcgi from https://pypi.org/project/wfastcgi/

  • Enabling wfastcgi with wfastcgi enable (and saved the output for the config file)

  • Deploying my app on wwwroot/myapp

  • Adding a web.config file on that myapp folder that looks like this:

<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:Program FilesPython37python.exe|C:Program FilesPython37Libsite-packageswfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>

<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="backend.wsgi.socketio" />
<add key="PYTHONPATH" value="C:inetpubwwwrootmyapp" />
</appSettings>
</configuration>


socketio is the name of my Flask app, everything is ok when I run the wsgi file "standalone".



  • Creating an app in IIS linked to that folder with the right physical path


    while testing app parameters, authentication step is OK, Authorization step raise a warning but not an error.




Result



When I try to reach my app I get a 500 HTTP error with the folowing 0x80070585 IIS error code.



When I "break" my web.config file (removing tag close for example), IIS tell me that the file is not well formed, so the file is reachable.



Since the error seems to come from the scriptProcessor, I double checked that both C:Program FilesPython37python.exe and C:Program FilesPython37Libsite-packageswfastcgi.py existed.
May IIS have access troubles?



I tried to inspect IIS logs, but that's not really verbose. I only have HTTP request logs.



Where should I dig to find more logs?



Thank you for yor help, note that I'm totally new to IIS and Microsoft servers, so I may have missed something big.







iis python wsgi flask wfastcgi






share|improve this question









New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 11 at 13:55









Lex Li

35229




35229






New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 11 at 9:25









Glandalf313Glandalf313

13




13




New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

    – Lex Li
    Apr 11 at 13:35

















  • stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

    – Lex Li
    Apr 11 at 13:35
















stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

– Lex Li
Apr 11 at 13:35





stackoverflow.com/tags/wfastcgi/info Python on IIS is dead.

– Lex Li
Apr 11 at 13:35










1 Answer
1






active

oldest

votes


















0














As Microsoft seems to give up with this stack, the only serious solution is to switch to an actively maintained solution such as Nginx or Apache. Thanx @Lex Li for the link to the communication.






share|improve this answer








New contributor




Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Glandalf313 is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962577%2fhow-can-i-solve-0x80070585-error-code-on-my-python-flask-wfastcgi-app%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    As Microsoft seems to give up with this stack, the only serious solution is to switch to an actively maintained solution such as Nginx or Apache. Thanx @Lex Li for the link to the communication.






    share|improve this answer








    New contributor




    Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      As Microsoft seems to give up with this stack, the only serious solution is to switch to an actively maintained solution such as Nginx or Apache. Thanx @Lex Li for the link to the communication.






      share|improve this answer








      New contributor




      Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        As Microsoft seems to give up with this stack, the only serious solution is to switch to an actively maintained solution such as Nginx or Apache. Thanx @Lex Li for the link to the communication.






        share|improve this answer








        New contributor




        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        As Microsoft seems to give up with this stack, the only serious solution is to switch to an actively maintained solution such as Nginx or Apache. Thanx @Lex Li for the link to the communication.







        share|improve this answer








        New contributor




        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Apr 12 at 11:24









        Glandalf313Glandalf313

        13




        13




        New contributor




        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Glandalf313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




















            Glandalf313 is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Glandalf313 is a new contributor. Be nice, and check out our Code of Conduct.












            Glandalf313 is a new contributor. Be nice, and check out our Code of Conduct.











            Glandalf313 is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962577%2fhow-can-i-solve-0x80070585-error-code-on-my-python-flask-wfastcgi-app%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?