Skip to content

Could not setup log file, permission denied #127

@laurentiuspurba

Description

@laurentiuspurba

Hello,

I got the following error while running terrform apply on agent-policy, https://github.com/terraform-google-modules/terraform-google-cloud-operations/tree/main/modules/agent-policy.

Any pointers what I should look into? All permission are satisfied based on the README.

   with module.agent_policy.module.gcloud-destroy.null_resource.run_command[0],
   on .terraform/modules/agent_policy.gcloud-destroy/main.tf line 232, in resource "null_resource" "run_command":
  232:   provisioner "local-exec" {
 
 Error running command 'PATH=/google-cloud-sdk/bin:$PATH
 gcloud info
 ': exit status 1. Output: WARNING: Could not setup log file in
 /.config/gcloud/logs, (Error: Could not create directory
 [/.config/gcloud/logs/2025.03.07]: Permission denied.

Appreciate any help one this.

-Laurent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions