ApplicationInsights-Java
ApplicationInsights-Java copied to clipboard
Java FunctionApp failed to start due to missing Application Insights Agent
Expected behavior
The Java Function App suddenly failed to start due to missing application-insights agent. We haven't change anything in the configuration. As shown in logs, the application is trying to pick up 2 versions of application insights agents, both 3.2.11 and 2.8.37 (this one is for no reason). We've instrumented our function app the way it's described in the documentation, by providing 2 EVN variables ApplicationInsightsAgent_EXTENSION_VERSION=~2 and XDT_MicrosoftApplicationInsights_Java=1
Actual behavior
The Java Function App failed to start due to missing application-insights agent
To Reproduce
Steps to reproduce the behavior:
Sample Application
If applicable, provide a sample application which reproduces the issue.
System information
Please provide the following information:
- SDK Version: Java 11, Azure Functions Runtime 3
- OS type and version: Windows
- Application Server type and version (if applicable):
- Using spring-boot? Yes, Spring Cloud Functions
- Additional relevant libraries (with version, if applicable):
Logs
Error opening zip file or JAR manifest missing : D:\Program Files (x86)\SiteExtensions\ApplicationInsightsAgent\2.8.37\java\applicationinsights-agent-codeless-2.5.1.jar;-javaagent:D:\Program Files (x86)\SiteExtensions\JavaApplicationInsightsAgent\3.2.11\java\applicationinsights-agent-codeless.jar
Picked up _JAVA_OPTIONS: -javaagent:'D:\Program Files (x86)\SiteExtensions\ApplicationInsightsAgent\2.8.37\java\applicationinsights-agent-codeless-2.5.1.jar';-javaagent:'D:\Program Files (x86)\SiteExtensions\JavaApplicationInsightsAgent\3.2.11\java\applicationinsights-agent-codeless.jar'
Be sure to remove any private information from the logs before posting!
Screenshots
If applicable, add screenshots to help explain your problem.
hi @garoplin! this appears to be an issue caused by a recent App Services rollout, we are working with the App Services team currently to investigate, thx
Is is the case for Linux App Services as well?
No, it's only for Windows.
hi @garoplin, the fix for affected customers is rolling out, if you need to expedite the rollout you can open a support ticket with App Services
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.