-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi Team.
I was failing to deploy this solution oci-idcs-monitoring either using the marketplace APP or via Terraform.
It seems that the code is not authenticating before uploading the image to the container registry, so it fails with “Denied: Anonymous users are only allowed read access on public repos”
I was not able to deploy via resource manager or terraform.
Then, with Terraform I just previously executed the docker login command with the credentials and the solution was deployed smoothly.
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error: local-exec provisioner error
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] with null_resource.IdcsAuditLogPush2OCIR,
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] on main.tf line 31, in resource "null_resource" "IdcsAuditLogPush2OCIR":
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 31: provisioner "local-exec" {
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error running command 'docker push
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] phx.ocir.io/NAMESPACE/loganalytics/postauditlogs:0.0.1': exit status 1.
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Output: The push refers to repository
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] [phx.ocir.io/NAMESPACE/loganalytics/postauditlogs]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 3427d0aaff85: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c69ed9288d51: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] bbcfa0d2dcd1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]