Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker/dsengine.sh - CRG0009E: not authorized to access the specified account #40

Open
chiang-tan opened this issue Dec 8, 2023 · 1 comment

Comments

@chiang-tan
Copy link

chiang-tan commented Dec 8, 2023

As a DataStage User
I want to test DataStage Anywhere on Docker (and subsequently on AWS)

I created

When I ran

./dsengine.sh start -n 'remote_engine_name_01' \
                    -a "$IBMCLOUD_APIKEY" \
                    -e "$ENCRYPTION_KEY" \
                    -i "$ENCRYPTION_IV" \
                    -p "$IBMCLOUD_CONTAINER_REGISTRY_APIKEY" \
                    --project-id "$PROJECT_ID"

I encounter

{
    "code": "CRG0009E",
    "message": "You are not authorized to access the specified account. See https://cloud.ibm.com/docs/Registry?topic=Registry-troubleshoot-auth-req",
    "request-id": "309ad3ee-7bb2-4f6a-8570-2f4bfbf41632"
}

Tracing back to dsengine.sh, this was triggered while executing line 392 of dsengine.sh script.

icr_response=$(curl -s -X GET -H "accept: application/json" -H "Account: d10b01a616ed4b73a9ac8a052424a345" -H "Authorization: Bearer $CR_IAM_TOKEN" --url "https://icr.io/api/v1/images?includeIBM=false&includePrivate=true&includeManifestLists=true&vulnerabilities=true&repository=${PXRUNTIME_IMAGE_NAME}")

I have tried granting a lot of different Access (e.g. IBM Cloud Pak for Data, Container Registry, Cloud Object Storage, DataStage, IBM Cloud Projects) to the Service Id, but none of them can get me past the CRG0009E error while trying to access icr.io/datastage/ds-px-runtime

I believed, this may be due to my account not having access to the respistory icr.io/datastage/*

May I know how gain access to the repository?

If you notice I made any error during the setup, please do point it out as well.

@johnmckeever
Copy link

Any ideas, @brahmaroutu ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants