`Error: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?...: 401 Unauthorized` on `helm pull oci://ghcr.io/...`
BeginnerTroubleshootingDependencies, Repositories & OCI
Answer
Likely causes → Not logged in, expired token, token lacking read:packages, or the package is private and the token's user has no access.
Diagnose → cat "$(helm env HELM_REGISTRY_CONFIG)" | jq '.auths | keys'.
Fix → echo $TOKEN | helm registry login ghcr.io -u <user> --password-stdin, with a token that has package read rights; grant the repo access to the package.
Prevent → In GitHub Actions use GITHUB_TOKEN with packages: read and link the package to the repository.
More on Dependencies, Repositories & OCI
``Error: An error occurred while checking for chart dependencies. You may need to run `helm dependency build` to fetch missing dependencies: found in Chart.yaml, but missing in charts/ directory: shop-postgres``Beginner`Error: no repository definition for https://charts.example.com/stable. Please add the missing repos via 'helm repo add'`Beginner`Error: the lock file (Chart.lock) is out of sync with the dependencies file (Chart.yaml). Please update the dependencies`Beginner`Error: looks like "https://charts.example.com" is not a valid chart repository or cannot be reached: failed to fetch https://charts.example.com/index.yaml : 404 Not Found`Beginner`Error: chart "shop" version "1.4.2" not found in https://charts.example.com repository`Beginner`helm push` to ECR fails with `name unknown: The repository with name 'charts/shop' does not exist in the registry with id '123456789012'`Beginner