cto-a / private-isu-ops

ISUCON研修運営用
0 stars 0 forks source link

SQSへの接続が失敗するので調査 #42

Open harukitosa opened 1 year ago

harukitosa commented 1 year ago
harukitosa commented 1 year ago

エラー内容としてはここら辺

2023/6/22 0:57:56 JST | Failed to get running config: NoCredentialProviders: no valid providers in chain | e9cb8167a7f5414f8de251bc3c5b1960 | benchmarker-container
-- | -- | -- | --
2023/6/22 0:57:56 JST | caused by: EnvAccessKeyNotFound: failed to find credentials in the environment. | e9cb8167a7f5414f8de251bc3c5b1960 | benchmarker-container
2023/6/22 0:57:56 JST | SharedCredsLoad: failed to load profile, . | e9cb8167a7f5414f8de251bc3c5b1960 | benchmarker-container
2023/6/22 0:57:56 JST | EC2RoleRequestError: no EC2 instance role found | e9cb8167a7f5414f8de251bc3c5b1960 | benchmarker-container
2023/6/22 0:57:56 JST | caused by: RequestError: send request failed | e9cb8167a7f5414f8de251bc3c5b1960 | benchmarker-container
2023/6/22 0:57:56 JST | caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: invalid argument

2023/6/22 0:57:56 JST   Failed to get running config: NoCredentialProviders: no valid providers in chain    [e9cb8167a7f5414f8de251bc3c5b1960](https://ap-northeast-1.console.aws.amazon.com/ecs/v2/clusters/benchmarker-ecs-cluster/services/benchmark-ecs-service/tasks/e9cb8167a7f5414f8de251bc3c5b1960?region=ap-northeast-1)   benchmarker-container
2023/6/22 0:57:56 JST   caused by: EnvAccessKeyNotFound: failed to find credentials in the environment. [e9cb8167a7f5414f8de251bc3c5b1960](https://ap-northeast-1.console.aws.amazon.com/ecs/v2/clusters/benchmarker-ecs-cluster/services/benchmark-ecs-service/tasks/e9cb8167a7f5414f8de251bc3c5b1960?region=ap-northeast-1)   benchmarker-container
2023/6/22 0:57:56 JST   SharedCredsLoad: failed to load profile, .  [e9cb8167a7f5414f8de251bc3c5b1960](https://ap-northeast-1.console.aws.amazon.com/ecs/v2/clusters/benchmarker-ecs-cluster/services/benchmark-ecs-service/tasks/e9cb8167a7f5414f8de251bc3c5b1960?region=ap-northeast-1)   benchmarker-container
2023/6/22 0:57:56 JST   EC2RoleRequestError: no EC2 instance role found [e9cb8167a7f5414f8de251bc3c5b1960](https://ap-northeast-1.console.aws.amazon.com/ecs/v2/clusters/benchmarker-ecs-cluster/services/benchmark-ecs-service/tasks/e9cb8167a7f5414f8de251bc3c5b1960?region=ap-northeast-1)   benchmarker-container
2023/6/22 0:57:56 JST   caused by: RequestError: send request failed    [e9cb8167a7f5414f8de251bc3c5b1960](https://ap-northeast-1.console.aws.amazon.com/ecs/v2/clusters/benchmarker-ecs-cluster/services/benchmark-ecs-service/tasks/e9cb8167a7f5414f8de251bc3c5b1960?region=ap-northeast-1)   benchmarker-container
2023/6/22 0:57:56 JST   caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: invalid argument
harukitosa commented 1 year ago

fail to get messageが出ているのでqueueからそもそも情報を取得できていない https://github.com/cto-a/private-isu-ops/blob/8542a5f28c6550a67d858e3b201a98583e1b1109/benchmarker/runningconfig/running_config_sqs.go#L45-L49