-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing SQLAlchemy in Consumption plan #598
Comments
Hey @robertlagrant, Thanks for creating this detailed testing scenario and I suggest you take a look into these few things.
|
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
@msftbot 4 days! It took 16 for the first response from Azure, and that was a list of suggestions, which take time to implement. Please keep open. |
@Hazhzeng I've gone through the settings and changed them. I was running in a 3.7 venv. Removing $ func azure functionapp publish rob598-func
Getting site publishing info...
Response status code does not indicate success: 503 (Site Unavailable).
$ Adding Did you get this working with the changes you suggested? |
Hi @robertlagrant, The 503 error is due to a misconfiguration in your function app. You can diagnose the function app via Azure Portal -> Function App -> Platform Features -> Diagnose and solve problems -> Availability and Performance (5xx error) -> Function App Down or Reporting Errors. |
Hi @Hazhzeng - thanks for the reply. I'd removed those already. However, navigating to where you said got me to an error that said I shouldn't have Anyway. I removed that, tried another publish, and...same 503 error, as above. Bear in mind the 503 is on publish, not run. It doesn't even get that far. |
Hi @robertlagrant, This is a TerraForm issue and it is out of our reach. It keeps creating the function app with FUNCTIONS_EXTENSION_VERSION = ~1 (even when I include FUNCTIONS_EXTENSION_VERSION Could you try using Azure CLI to create the function app: |
Please raise an issue in the terraform AzureRM repository maintained by hashicorp, and ask them to change FUNCTIONS_EXTENSION_VERSION to ~3, and remove WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING. Feel free to reopen this issue if you have more questions. |
For more info - there are two things going on:
|
I would like to reopen this as I'm having the following issue now when running the Function (with the correct flags applied by my patch to the terraform provider and confirmed within the App Settings). Note that my requirements.txt includes the required eventhub (
|
@Hazhzeng, could you help me reopen this please as it doesn't work even with the specified Terraform fixes. |
@borancar this sounds a bit defeatist, but we've had terrible luck with Azure Functions - they don't seem ready for primetime. |
@borancar Could you share the function app name so we can check if the config looks good. |
So, it boils down to Linux Consumption plans not supporting installation from
but stop it at:
Then you can zip up the files, making sure to include the generated |
Runtime:
Resource: Azure Function
Type: functionapp,Linux
Libraries:
Description
Having sqlalchemy in my requirements.txt produces the following when I build the function app:
--build local
errors with the following:--build remote
appears to succeed, but running an endpoint results in aModuleNotFound: sqlalchemy
error in the logs--build-native-deps
appears to succeed, but running an endpoint results in aModuleNotFound: sqlalchemy
error in the logsSQLAlchemy doesn't yet issue wheels, and the build code seems to rely on there being a wheel available.
I think SQLAlchemy does some C compilation when it's built, although I can't actually remember, but according to the error message I get with
--build local
, either of these options should work. And neither of them errors. But in that case - why isn't SQLAlchemy available to the function app?The text was updated successfully, but these errors were encountered: