# Error listing bucket contents: Error getting access token for service account: oauth2.googleapis.com

**URL:** <https://discuss.elastic.co/t/error-listing-bucket-contents-error-getting-access-token-for-service-account-oauth2-googleapis-com/293704>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [January 7, 2022, 4:56am UTC](https://discuss.elastic.co/t/error-listing-bucket-contents-error-getting-access-token-for-service-account-oauth2-googleapis-com/293704 "2022-01-07T04:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![parmarX](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@parmarX](https://discuss.elastic.co/u/parmarX)\
**Post date:** [January 7, 2022, 4:56am UTC](https://discuss.elastic.co/t/error-listing-bucket-contents-error-getting-access-token-for-service-account-oauth2-googleapis-com/293704/1 "2022-01-07T04:56:14Z")

</div>

Hello ,

I am facing this issue while running my pipeline using configmap and deployment in docker.  
my plugin is unable to get access token for service accound .  
i am using plugin input\_google\_cloud\_storage to get file data from gcp to my machine(container).

My goal is to read data from a file content from gcp bucket via running logstash in pod

here are some logs.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c12fa946b2c1d2e68017d083af2aee9e3b38d84.png)

when i am running a container using docker only then it's working fine , but when i am running it using k8s pod it's unable to authenticate i believe.

my config : here i have only shown what config i am using for plugin .

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a09255610b785f09125001a5d17d5a630b7958ac.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 4, 2022, 4:56am UTC](https://discuss.elastic.co/t/error-listing-bucket-contents-error-getting-access-token-for-service-account-oauth2-googleapis-com/293704/2 "2022-02-04T04:56:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
