자주 만나는 오류¶
실습 중 자주 등장하는 오류와 해결 방법을 정리했습니다.
Azure CLI 관련¶
❌ "The resource provider 'Microsoft.App' is not registered"
**원인**: Azure 구독에 Container Apps 리소스 공급자가 등록되지 않음 **해결**: `"Registered"` 가 나오면 재시도하세요.❌ "No subscriptions found" (az login 후)
**원인**: Azure 계정에 활성 구독 없음 **해결**: 1. [portal.azure.com](https://portal.azure.com) 에서 무료 체험 구독 활성화 2. 또는 `az account list --all` 로 비활성 구독 확인 후 `az account set --subscription❌ az login 후 계정 선택이 필요합니다
여러 Azure 계정이 있는 경우:Docker 관련¶
❌ "docker: permission denied"
**해결**:❌ ACR push: "unauthorized: authentication required"
**원인**: ACR 로그인 세션 만료 또는 로그인 안 됨 **해결**:❌ "port is already allocated" (포트 8000 또는 80)
**해결**:Azure Container Apps 관련¶
❌ ACA 앱이 계속 재시작됩니다 (Restart Loop)
**원인 확인**: 주요 원인: - 대상 포트 번호가 틀림 (api는 8000, web은 3000 이어야 함) - 이미지 Pull 실패 (이미지 이름 오타 또는 Private 이미지) - 앱 시작 오류 (환경 변수 누락)❌ Container App 생성이 5분 이상 걸립니다
**이것은 오류가 아닙니다.** ACA 환경(Environment) 생성 시 Log Analytics Workspace를 함께 프로비저닝하므로 5~10분 소요됩니다. 기다리세요. 10분 이상 걸리면 Azure Portal에서 배포 상태를 확인하세요.❌ External Ingress URL 접속 안 됨 (ERR_CONNECTION_REFUSED)
**체크리스트**:# 1. Ingress가 external인지 확인
az containerapp ingress show \
--name hanbat-web \
--resource-group hanbat-rg \
--query "external"
# true 여야 함
# 2. 앱이 Running 상태인지 확인
az containerapp show \
--name hanbat-web \
--resource-group hanbat-rg \
--query "properties.runningStatus"
# Running 이어야 함
# 3. URL이 https:// 로 시작하는지 확인
# http:// 는 redirect 안 됨 — 반드시 https:// 사용