Skip to content
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

Local agent trying to connect to Azure metadata (regression bug?) #3345

Closed
epomatti opened this issue Oct 17, 2023 · 2 comments
Closed

Local agent trying to connect to Azure metadata (regression bug?) #3345

epomatti opened this issue Oct 17, 2023 · 2 comments

Comments

@epomatti
Copy link

Behavior

When running the agent locally (outside of Azure), I'm getting this error connection timed out: /169.254.169.254:80.

I can't see data being ingested into APPI, nothing shows on Azure.

2023-10-16 22:53:31.839-03:00 ERROR c.azure.core.http.policy.RetryPolicy - {"az.sdk.message":"Retry attempts have been exhausted.","exception":"connection timed out: /169.254.169.254:80","tryCount":3}

It looks like a regression of #1775.

To Reproduce

Run the agent locally. I'm setting variables like this:

export APPLICATIONINSIGHTS_CONNECTION_STRING="<REDACTED>"
export MAVEN_OPTS="-javaagent:applicationinsights-agent-3.4.17.jar"

And running the application:

./mvnw spring-boot:run

System information

Please provide the following information:

  • SDK Version: 3.4.17
  • OS type and version: WSL2 Ubuntu 22
  • Application Server type and version (if applicable): Spring Boot 3.1.4
  • Additional relevant libraries (with version, if applicable): Java 21

Logs

2023-10-16 22:51:47.470-03:00 INFO  c.m.applicationinsights.agent - Application Insights Java Agent 3.4.17 started successfully (PID 10407, JVM running for 2.195 s)
2023-10-16 22:51:47.475-03:00 INFO  c.m.applicationinsights.agent - Java version: 21, vendor: Eclipse Adoptium, home: /home/<redacted>/.sdkman/candidates/java/21-tem
2023-10-16 22:53:31.839-03:00 ERROR c.azure.core.http.policy.RetryPolicy - {"az.sdk.message":"Retry attempts have been exhausted.","exception":"connection timed out: /169.254.169.254:80","tryCount":3}
@heyams
Copy link
Contributor

heyams commented Oct 17, 2023 via email

@epomatti
Copy link
Author

Looked for it but didn't find. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants