-
Notifications
You must be signed in to change notification settings - Fork 62
Azure Functions work Locally, but Timeout or Freeze when deployed on Azure #140
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
Comments
can you please share function app name and approximate time when you saw timeouts? |
the sample is using old version of library which is not supported any more https://github.com/Microsoft/function-demo-java-on-azure/blob/master/walkthrough/pom.xml#L24 |
Which version works? I am using version 1.10.
|
You are using old sdk which is not supported any more
Latest maven archetype should work. You do not have to specify a version. cc: @jdneo |
what about the archetypeVersion=1.10? Is that incorrect too? |
Yes. Just use the latest using command
|
We already established 1 month ago when I spoke to you that the archetype you just provide DID NOT WORK. It was causing the local functions to fail/freeze. That's when you and Bruno advised me to use version 1.10, which got the function to work locally. Next, if you look in my Hello repo link I sent you, I clearly using version 1.0.0-beta-3 for the azure-function-java-core in my POM.xml: So, we are going in circles because all of these dependency versions should be handled in the archetype. |
We made several fixes after that. We were in the middle of making breaking changes then. So we asked you to use version of archetype. |
Using the maven archetype without specifying the version gives my the following error when I try to deploy to Azure: [INFO] Scanning for projects... |
@ruyakubu - Your sample is still using old sdk. Please see here for the updated sample https://github.com/pragnagopa/function-demo-java-on-azure @jdneo - Any ideas on deploy error? |
Can you list step by step what steps a developer is supposed to follow?
|
FYI @brunoborges @selvasingh @asavaritayal I was able to repro the deploy issue. Root cause is resource group name is not unique. Opened issue |
I see an error goes: Could you please check the Application settings of the Function App that |
Closing this as this is fixed. |
…optimizations. Bumped all versions of all dependencies to the latest stable versions. Bumped Apache FOP to latest v2.6 just released in Jan. 2021. Fixed some possible deployment issues due to AppName and ResourceName needing to be unique (as noted in Azure/azure-functions-java-worker#140). And incremented SNAPSHOT to v1.1 to denote the big changes/improvements that have now been completed. ***NOTE: Deployments to Azure were still failing however until the Java Version was updated to 11 in the Runtime Settings of the Azure App in the portal; which then took some time ~5 minutes (environment change I suppose) and finally the deployed application was able to run successfully after deployment, with all the latest changes!
Kind of more related to jdneo's comment above but empty settings can also occur when you use --force on deploy to switch the FUNCTIONS_WORKER_RUNTIME of your function app, in my case to node. When I did so I first got a 503 waiting for a response. After some head-banging, I was then clued by comments here for this issue to check my own app settings and indeed found no value was selected for Node.js Version in Stack Settings. Picking a version resolved the issue. So use --force with caution. Microsoft could also enhance documentation guidance here and set default elections. |
Has anyone been able to successfully run deployed Java Azure Functions in Azure?
I find it odd that none of these published samples work Locally, but all fail and keep Timing out on the Azure portal:
• https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven
• https://github.com/Microsoft/function-demo-java-on-azure
What's missing?
The text was updated successfully, but these errors were encountered: