-
Notifications
You must be signed in to change notification settings - Fork 447
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
Java Azure Functions - The function runtime is unable to start - Could not load type 'Microsoft.Azure.ServiceBus.Management.ManagementClient #5317
Comments
@soninaren -- Did bundles change? |
@hci2 Can you share the host.json configuration? Are the following 2 conditions meeting for your function app?
If you the above 2 conditions are met, then deleting the bin folder should resolve this issue. |
Here is the structure of my hostfile:
I do have a bin folder in D:\home\site\wwwroot. I tried to delete the bin directory and restart the Azure Functions via Azure Portal but I am not allowed to do that, see screenshot below: If I try to delete with FTP (FileZilla) I do not see the same structure as with kudu console. I will keep trying to delete it somehow and keep you updated, if I know more about it. Do you have any suggestions how to remove it? Should I create a completely new Azure Function? I thank you for your effor and wish you a good afternoon! |
If function app is configured to "Run from package" then you won't be able to delete the bin folder. When you use run from package, a zip file is mounted into the wwwroot path. In that case you would have to do a deployment where the generated zip file does not comtain the bin folder. https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package |
Thank you the the hint. It did not know that before. I have set the Application Settings "WEBSITE_RUN_FROM_PACKAGE" to 1 and therefore I deployed a new version without bin directory and now it is working again. Thank you really much. Detailed procedure for Azure Functions (Windows, Code, Java):
PS: I am using maven plugin for Azure Functions. pom.xml
My concern is that I have to do that behavior every deployment from now on. The workaround is great but I think that this faulty bin directory issue should be fixed in the soon future! Anyways I really thank you for your help! |
SUPPLEMENT: The same steps (delete bin directory) are also necessary when you want to run the Azure Function locally. Hopefully this strange bug with the creation of a faulty bin directory will be fixed in the near future! |
cc: @amamounelsayed |
@hci2 Thank you for your help. microsoft/azure-maven-plugins#929 |
@hci2 Thanks for your feedback and sorry for the inconvenience, besides, could you please try mvn clean package the project with function maven plugin |
Thank you for your hint but I am already using version Excerpt of my pom.xml (some appSettings are removed to stay anonymous):
|
I deployed a new version of my Azure Functions based on Java. Now there is following error toast:
It sounds for me a bit like that: Common errors when upgrading to 2.0.12050 (or newer)
The interesting thing is that I changed nothing. Is the Function App Version automatically upgraded?
I also checked the logs via kudu and log stream (application logs).
logs:
Log streaming:
Same logs as in the log file via kudu
Do you know why it stopped working? I have no plan to be honest. Did any configuration for the service bus trigger changes?
Check for a solution in the Azure portal
For issues in production, please check for a solution to common issues in the Azure portal before opening a bug. In the Azure portal, navigate to your function app =>
Platform features
=>Diagnose and solve problems
and the relevant dashboards before opening your issue.Investigative information
Please provide the following:
Related information
Provide any related information
SUPPLEMENT: I updated the local dependencies like .NET Core Version to the newest v2.2.8 from here: https://dotnet.microsoft.com/download/dotnet-core/2.2
The update does not change the error message. I get the same error exception when I locally start the function with the maven plugin "azure-functions-maven-plugin" version 1.3.4, as you can see below:
Do you have any suggestion to solve that problems?
The text was updated successfully, but these errors were encountered: