I have a number of Azure App Service deployed Java applications using Application Insights. Over the last 72 hours they’ve started failing to deploy upon restart. Nothing has changed that I’m aware of, though, of course, I would say that.
The only smoking gun I can find is that there is a warning in the default-docker.log
WARN 138 --- [ main] c.m.azure.telemetry.TelemetrySender : Failed to exchange telemetry request, I/O error on POST request for "https://dc.services.visualstudio.com/v2/track": Connection reset; nested exception is java.net.SocketException: Connection reset.
Some of the applications are using the java agent for application insights, some are not, so I don’t think that the agent is the problem.
And google has not seemed to be my friend today, as there are no results on this subject.
2
Answers
Turns out that the actual problem was in the configuration of the firewall between the application instances and the Application Insights service. The firewall is configured by a third party (outsourcing FTW), and they had change the network MTU from 1500 to 1400, resulting in many, many dropped packets. Some messages were getting through (which made it hard to diagnose), and sometimes even large messages were (eventually) getting through, but the fix was to revert the firewall change.
applicationsinsights.json
which will contain the connection string and withlogback-spring.xml
which will configure logging in the app.logback-spring.xml
applicationsinsights.json
pom.xml (Dependencies)
In The main file I also added the following line
make sure the above file is above everything else in the main function.