-
Notifications
You must be signed in to change notification settings - Fork 68
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
I can't connect x-ray console via x-ray daemon by docker #30
Comments
Hi @lethienhoang, Looks like you have configured aws-xray-daemon correctly. I think aws x-ray endpoint will not be accessible to you because daemon is using that endpoint to send data to x-ray service. I would check back configuration with aws-console again since you are not able to see traces on the console. Follow up questions from my side
Hope this helps! |
Thanks I found solutions but I will ask another quétions |
@lethienhoang |
@Gayatri31 Can you post your X-Ray Daemon logs? Thanks! |
Hi @awssandra
command: Added the keys to .aws/credentials file, created an IAM user with permissions: AWSXrayFullAccess, AWSXRayDaemonWriteAccess, AmazonS3FullAccess I'm running the segment.txt |
Hi @Gayatri31 , Installation looks fine by looking at the daemon logs. When I ran(using this
Would you mind trying out below segment.txt file and see if you see any logs:
I would also recommend you to try out by sending actual segments and subsegments if your goal is to verify daemon installation is correct. Also, are you running daemon locally ? |
Hi @bhautikpip yes, I'm running daemon locally. My goal is to push data to Xray using cmd
Is there any way to access daemon outside the container? |
Hi @Gayatri31 As for the |
@srprash is there an issue number for the bug? i came across it this morning and couldn't figure out if it was something in my application or something in the sdk. thanks. |
Hi zaf187, This is the issue tracking: #22 |
Hi all, Thanks |
Dockerfile
FROM amazonlinux RUN yum install -y unzip RUN curl -o daemon.zip https://s3.dualstack.ap-southeast-2.amazonaws.com/aws-xray-assets.ap-southeast-2/xray-daemon/aws-xray-daemon-linux-3.x.zip RUN unzip daemon.zip && cp xray /usr/bin/xray ENTRYPOINT ["/usr/bin/xray", "-t", "0.0.0.0:2000", "-b", "0.0.0.0:2000"] EXPOSE 2000/udp EXPOSE 2000/tcp
...
docker run \ --attach STDOUT \ -v ~/.aws/:/root/.aws/:ro \ --net=host \ -e AWS_REGION=ap-southeast-2 \ --name xray-daemon \ -p 2000:2000/udp \ xray-daemon -o
I have been set up my aws access key and aws secret access key in credential of .aws folder
The result of docker running is
Then go to https://xray.ap-southeast-2.amazonaws.com/ on browser and got this error
<MissingAuthenticationTokenException> <Message>Missing Authentication Token</Message> </MissingAuthenticationTokenException>
My app is running normally . I still see X-Amzn-Trace-Id: Root=1-5dd25d16-b57eba6c376e7395d1645b16; in header of response but don't push them to x-ray console.
How to fix them. What's wrong in setting up x-ray daemon,.... ? Please help me.
The text was updated successfully, but these errors were encountered: