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

Cannot send Django regions to XRAY on aws #151

Open
voipp opened this issue Jul 28, 2021 · 2 comments
Open

Cannot send Django regions to XRAY on aws #151

voipp opened this issue Jul 28, 2021 · 2 comments
Labels

Comments

@voipp
Copy link

voipp commented Jul 28, 2021

I have a EC2 instance, with XRAY daemon installed in it. Also, policy AWSXRayDaemonWriteAccess is attached to the role.

Simple Django application deployed to EC2, with default xray configuration.

In the application logs I see:

File "/usr/local/lib/python3.9/site-packages/botocore/httpsession.py", line 352, in send raise EndpointConnectionError(endpoint_url=request.url, error=e) botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://127.0.0.1:2000/GetSamplingRules"

I have the following configurations in django app:

XRAY_RECORDER = {
'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR',
'AWS_XRAY_TRACING_NAME': 'My application',
'PLUGINS': ('EC2Plugin', 'ECSPlugin'),
}
Why the application fails to connect to Xray daemon?

Also, When I execute curl 'http://127.0.0.1:2000' I got accessdeniedexception, why does it happen?

@willarmiros
Copy link
Contributor

See reply here: https://forums.aws.amazon.com/thread.jspa?threadID=343965&tstart=0

please follow up here or on AWS forums, and we can use the same channel going forward

@stale
Copy link

stale bot commented Jan 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants