title: AWS X-RAY [Error] Sending segment batch failed with: NoCredentialProviders: no valid providers in chain. Deprecated
body: <p>I'm using X-Ray Daemon with Fargate. Unfortunately in the logs of the daemon I see errors like:</p>
  <blockquote>
  <p>[Error] Sending segment batch failed with: NoCredentialProviders: no
  valid providers in chain. Deprecated. For verbose messaging see
  aws.Config.CredentialsChainVerboseErrors Warn]  Delaying sending of
  additional batches by 0 seconds</p>
  </blockquote>
  <p>AWS X-Ray works with IAM: permission: AWSXrayFullAccess</p>
  <p>I already checked:</p>
  <ul>
  <li><a href="https://github.com/aws-samples/aws-xray-fargate" rel="nofollow noreferrer">https://github.com/aws-samples/aws-xray-fargate</a></li>
  <li><a href="https://docs.amazonaws.cn/en_us/xray/latest/devguide/xray-guide.pdf" rel="nofollow noreferrer">https://docs.amazonaws.cn/en_us/xray/latest/devguide/xray-guide.pdf</a></li>
  </ul>
  <pre><code>{
   &quot;name&quot; : &quot;xray-daemon&quot;,
   &quot;image&quot; : &quot;amazon/aws-xray-daemon&quot;,
   &quot;user&quot; : &quot;1337&quot;,
   &quot;essential&quot; : true,
   &quot;cpu&quot; : &quot;32&quot;,
   &quot;memoryReservation&quot; : &quot;256&quot;,
   &quot;portMappings&quot; : [
   {
   &quot;containerPort&quot; : 2000,
   &quot;protocol&quot; : &quot;udp&quot;
   }
   ]
   }
   ],
   &quot;requiresCompatibilities&quot; : [ &quot;FARGATE&quot; ],
   &quot;taskRoleArn&quot; : &quot;arn:aws:iam::123456789012:role/ecsTaskRole&quot;,
   &quot;executionRoleArn&quot; : &quot;arn:aws:iam::123456789012:role/ecsTaskExecutionRole&quot;,
   &quot;networkMode&quot; : &quot;awsvpc&quot;
  } 
  </code></pre>