Setup Grafana Loki on GCS, compactor giving errors

Hello.

I’m trying to setup Loki monolith using Helm following these docs.

I’m getting this error:

error running loki" err="init compactor: failed to init delete store: failed to get s3 object: NoCredentialProviders: no valid providers in chain. Deprecated.

As instructed in the docs (linked above), I have this config for the compactor:

loki:
  compactor:
    retention_enabled: true
    delete_request_store: s3

And I setup the service account as instructed here:

loki:
  storage_config:
    gcs:
      bucket_name: "abc"
      service_account: |
        {
         ...
        }

Can someone please give a hint on how to resolve this error?

Thank you kindly

I forgot to mention that Loki seems to be able to connect to Google Cloud Storage because I see the file loki_cluster_seed.json appear in the bucket abc:

loki:
  storage:
    bucketNames:
      chunks: "abc" <---------- `loki_cluster_seed.json`
      admin: "def"
      ruler: "ghi"

Here is the service_account

loki:
  storage_config:
    gcs:
      bucket_name: "abc" <----- `loki_cluster_seed.json`
      service_account: |
        {
         ...
        }

So why the compactor is giving that error?

Thanks

Can you share your entire configuration, please?