import arcgis in Flask with fastcgi in IIS

1262
3
07-02-2020 11:26 PM
VictorTey
Esri Contributor

Hi, 

have anyone attempted to import arcgis running in flask while hosted in IIS via fastCGI?

I kept getting a 500 error with the import ArcGIS statement.

Running it in flask without fastCGI works fine.

arcgispro-py3\python.exe - The FastCGI process exited unexpectedly

Tags (2)
0 Kudos
3 Replies
JasonWise1
New Contributor

Yes, and I'm also getting a 500 error, but it may be for a different reason. It would be helpful to post the "detailed error information" that you see in your browser, especially the error code (not 500). The error code I get is 0xc0000005, an access violation, which apparently indicates a memory error that the operating system doesn't know how to deal with. I'm still looking for a solution.

I see that you're using Pro's default conda environment. I assume you've installed wfastcgi there, although Esri apparently discourages changing anything in that environment.

0 Kudos
VictorTey
Esri Contributor

Hi Jason Wise‌, thank you for the reply . The conda environment is a clone using a different file path. I have resolved the issue since then have gotten arcpy and arcgis python api to run in flask on iis.  It was just making sure the permissions are correctly set in the identity pool in IIS (Plus a whole lot of workaround to get it to work ). 

0 Kudos
JasonWise1
New Contributor

I haven't gotten this to work, so I asked my own question. Are you using wFastCGI?

0 Kudos