TDTech Digest

031. 문제 해결 (Troubleshoot Claude Managed Agents)

  • 원문: English
  • 위치: Claude Managed Agents › Troubleshoot Claude Managed Agents

한 줄 요약

응답 본문, 세션 이벤트, 도구 러너 로그를 함께 보는 것이 기본입니다. 요청이 성공해도 에이전트나 도구 러너가 아직 준비되지 않았을 수 있습니다. 도구 러너 로그는 AgentCore면 CloudWatch Logs /aws/bedrock-agentcore/runtimes/ 아래 런타임 이름 로그 그룹, 자체 호스팅이면 터미널에 있습니다.

쉽게 말하면

증상별(404, 401/403, 429, 세션 생성 400, 첫 메시지 실패, S3 실패, 턴 실패, 스트림 무응답, 스킬 미사용 등)로 원인과 조치를 정리한 표 모음입니다.

핵심 내용

404 / 400 (경로·ID·프로젝트)

메시지원인
모든 경로 404 no such routebase URL(/anthropic/v1로 끝나야 함) 또는 미지원 리전
404 This API requires the managed-agents-2026-04-01 value in the anthropic-beta header.anthropic-beta 헤더 누락
404 no such session / no such agent이 계정·프로젝트에 없음 → anthropic-workspace-id 확인
404 ... created with a different role than x-amz-role-arn세션 라우트의 x-amz-role-arn이 세션 역할과 다름
400 session_id is not a valid session idID가 잘림 등 형식 오류
404 the project does not exist프로젝트 없음
400 the project is archived보관된 프로젝트(조회·보관·삭제·redact·태그 제거·암호화 구성 조회만 가능)

401 / 403

aws sts get-caller-identity로 확인:

  1. assumed role인가(IAM 사용자·루트는 403)
  2. 서명 서비스 bedrock, 엔드포인트 리전, 세션 토큰 포함
  3. 호출하는 액션 권한(403 메시지에 주체·액션·리소스가 표시됨)
  4. 역할 지정 시 iam:PassRole(iam:PassedToService=bedrock.amazonaws.com)
  5. 세션 역할이 내 계정인가(the role in ... belongs to another account)
  • 403 This service is not available for this account. For access options, contact AWS Sales → 권한 문제 아님, AWS Sales·어카운트 팀 문의
  • 스택 배포 역할과 앱 서명 역할이 다를 수 있음 → 터미널별 AWS_PROFILE 확인
  • AccessDenied ... sts:AssumeRole → assume하는 주체에 sts:AssumeRole 권한 필요

429

  • rate_limit_error rate limit exceeded; retry after a brief delay + retry-after: 1 → 대기 후 백오프 재시도(030)
  • ⚠️ 403·404는 반복 재시도 금지(정책·ID 먼저 수정)
  • 도구 러너 로그 dialing faster than its connect quota allows → 자동 대기·재연결

세션 생성 400

메시지원인
the role could not be assumed세션 역할 없음 / 신뢰 정책 불일치 / ManagedAgentsExecutionRole 태그 누락
environment_id must be a runtime in your own account런타임이 다른 계정·리전
environment_id must be this project's self-hosted id다른 프로젝트의 self-hosted ID
Missing required tool스킬·sandbox_path·S3 리소스가 있는데 read 꺼짐
unknown field지원 안 하는 필드(예: vault_ids)
"user.define_outcome" is not available on this platformOutcomes 미지원 → user.message로 목표 전달
is not available on this platformconfigs에 web_fetch/web_search
model must be an Amazon Bedrock inference profile ID모델 이름·지역 없는 ID·프로필 ARN 사용
model is not supported엔드포인트가 제공하지 않는 모델
the agent must have exactly one execution role역할 없음 또는 역할이 여러 개인 예전 에이전트 → 에이전트 역할 업데이트
use role_arn to specify the agent's single execution roleallowed_role_arns 사용 또는 role_arn 철자 오류
role_arn must name the agent's execution role에이전트 생성에 역할 없음·빈 값
... with role_arn or execution_identity, not both역할 이중 지정
execution_identity must be an object with type aws_role and a role_arn형식 오류·추가 필드
spell execution_identity exactly as execution_identity대소문자 등 철자 오류

태그·메모리 스토어 400

메시지원인
unknown field: <name>오타(tag, tgas) 또는 메모리 스토어 update에 tags(→ 생성 시 또는 태그 라우트로)
a resource's AWS tags are tags, spelled soTags 등 대소문자 다른 철자
tags names two keys that differ only in letter caseteam/Team
a tag key differs only in letter case from one the resource has...기존 키와 대소문자만 다른 키 추가

첫 메시지 400 / 429 / 503 (런타임 문제)

  • 첫 메시지에 컨테이너가 시작되므로 런타임 문제는 여기서 드러납니다. AgentCore 한도는 런타임 소유 계정(내 계정) 기준
  • 서비스는 컨테이너를 최대 20초 기다리고, 늦으면 메시지를 수락한 채 턴을 시작합니다. 결국 시작 실패 시 첫 도구 호출이 “no sandbox available"을 보고하고, 다음 메시지가 다시 시작을 시도(S3 세션은 session.error 후 모델 호출 전 종료)
메시지원인·조치
429 AgentCore throttled this account's calls...AgentCore 새 세션·데이터 플레인 속도 초과 → 재시도
429 this account is over an AgentCore Runtime quota...활성 세션 할당량 초과 → 세션 삭제 또는 Service Quotas 증가 요청
the AgentCore Runtime ... does not exist, or the session role is not allowed to invoke itARN 오류 또는 권한 없음(기본 정책은 cma_tool_runner만 허용)
the session role is not authorized to invoke...런타임과 runtime-endpoint/*에 InvokeAgentRuntime 없음
AgentCore Runtime refused to activate ...: HTTP 400 ValidationExceptionAgentCore 자체 거부
... could not start its container이미지 pull·시작 실패 → ECR 권한, 태그, 런타임 로그
... speaks control protocol ... / does not speak ...도구 러너 버전 불일치 → 최신 번들로 재빌드
... could not make the session's working directory ... ready경로에 파일 존재·권한 없음 → Dockerfile에서 생성 또는 다른 working_directory(예전 러너는 생성 안 함)
503 ... not a compatible tool runner엔트리포인트가 cma-tool-runner agentcore가 아님
503 the AgentCore Runtime could not be activatedAgentCore 장애 → 재시도

S3 폴더·파일 실패 (상세는 024)

증상원인
400 ... need an environment_id that names an AgentCore Runtime자체 호스팅 세션
400 ... need an AgentCore Runtime on platform version V2V1 런타임(V2 전환 후 최대 5분 캐시)
모든 폴더 s3_mount_error, 파일 s3_copy_errorV1 런타임 또는 Dockerfile.s3-mounts로 빌드 안 함
마운트됐는데 s3_access_denied_error / 파일이 생긴 뒤 read_write 폴더 실패목록은 되는데 객체 읽기 불가 → s3:GetObject, kms:Decrypt
매 턴 path: null s3_mount_error “not ready in time”컨테이너 미기동 또는 S3 이전 버전 러너 → 재빌드
특수 문자 파일명에서 The sandbox could not be started + UnsupportedProtocolVersion예전 번들 → 재빌드
mv, sed -i, Office/zip 저장 실패, 빈 파일마운트는 이름 변경·append·부분 수정 불가 → 작업 디렉터리에서 만들어 cp

턴 실패

증상원인
s3_ 유형·mount_path_conflict_error·working_directory_error 후 retries_exhaustedS3 준비 실패
session.error 후 retries_exhausted모델 요청 실패 → 매번이면 세션 역할 InvokeModel 권한·리전 모델 접근 확인
Fable 에이전트가 매 턴 model_request_failed_error데이터 보존 모드가 aws_review 아님
events에 400 this session's container stopped and cannot be started again ... Create a new session컨테이너 종료(프로세스 kill 등). ⚠️ S3 세션은 정책이 그 컨테이너의 ${aws:AgentCoreRuntimeSourceSid}에 묶여 있어 새 컨테이너 불가 → 새 세션 생성(컨테이너 파일은 사라지고 S3 파일은 남음)
도구 호출 타임아웃도구 러너 미연결
명령 오류명령은 실행됨. 이미지에 프로그램이 없을 수 있음
MCP 호출 실패세션 역할 InvokeGateway 없음 또는 Gateway 거부

기타 증상

  • 세션이 계속 running: 긴 명령 실행 중일 수 있음 → 마지막 agent.tool_use 확인, user.interrupt. 실행 중 세션은 삭제·보관 불가
  • 세션·메모리 스토어 삭제가 503/429: 아무것도 삭제되지 않았으므로 재시도하면 성공(의존 서비스 무응답, 스로틀, 동시 변경)
  • 스트림에 아무것도 안 보임: idle이면 조용한 게 정상. 메시지 전에 열고 SSE로 읽기. : connected조차 안 오면 TLS 검사 프록시가 응답을 버퍼링하는 경우가 흔함 → 프록시 예외, AWS 내부(VPC·VPC 엔드포인트)에서 호출, 또는 몇 초마다 이벤트 목록 폴링. 10분 무이벤트 시 종료
  • 스킬이 안 쓰임: SKILL.md가 도구 러너 안에 있는지 확인. AgentCore는 이미지에 넣고 새 태그 push + 런타임 재배포, 실행 중 세션은 이전 컨테이너 유지 → 새 세션 생성. S3 스킬 폴더는 이미지 불필요하나 세션 생성 시점에 목록화되므로 이후 만든 세션부터 반영
  • 자체 호스팅 러너 미연결: 021 문제 해결 표
  • CloudFormation 실패: 역할·정책 already exists(템플릿 고정 이름) / 런타임 생성 실패(이미지 태그 없음, 런타임 이름 중복)

지원 문의 시 남길 정보

  • 리전, 대략적인 UTC 시각, 실패 요청의 x-amzn-requestid, 세션 ID, HTTP 상태, 오류 메시지
  • 도구 문제면 환경 유형, 도구 러너 버전, 로그. 자격 증명·프롬프트·공유 불가 데이터는 제거

SA 관점

  • 고객 현장에서 가장 흔할 것으로 보이는 이슈: IAM 사용자로 호출(403), 헤더 누락(404), 세션 역할 태그 누락(400), 이미지·런타임 버전 불일치(첫 메시지 실패), 기업 프록시로 인한 SSE 무응답.
  • 기업망 고객에게는 SSE 프록시 버퍼링 문제를 미리 알리고, VPC 엔드포인트 경유 호출을 권장하면 좋습니다.
  • S3 세션은 컨테이너가 죽으면 세션을 되살릴 수 없으므로, 장시간 작업은 중간 결과를 S3 폴더에 저장하고 새 세션으로 이어 가는 설계를 권장합니다.