# Getting error after injecting gcs credentials in elasticsearch

**URL:** <https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 1, 2021, 7:21am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989 "2021-04-01T07:21:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandu2](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chandu2](https://discuss.elastic.co/u/chandu2)\
**Post date:** [April 1, 2021, 7:21am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/1 "2021-04-01T07:21:44Z")

</div>

I am deploying ECK : 1.3.0 and elasticsearch version 7.9.0 in GKE. When I tried to inject secret called gcs-crdentials, elasticsearch nodes were getting restarted, but on crashloop back state.

```auto
secureSettings:
   - secretName: gcs-credentials

```

Below were the logs that I am getting

```auto
Caused by: java.io.UncheckedIOException: com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value",
" at [Source: (ByteArrayInputStream); line: 5, column: 47]"

```

Can anyone please help me why I am getting this error.

---

<div class="post-metadata">

**Author:** ![chandu2](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chandu2](https://discuss.elastic.co/u/chandu2)\
**Post date:** [April 2, 2021, 2:52am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/2 "2021-04-02T02:52:48Z")

</div>

Did anyone has any idea?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2021, 6:28am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/3 "2021-04-02T06:28:56Z")

</div>

Please be patient in waiting for responses to your question and refrain from pinging multiple times asking for a response or opening multiple topics for the same question. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the [Community Code of Conduct](https://www.elastic.co/community/codeofconduct) specifically the section "Be patient". Also, please refrain from pinging folks directly, this is a forum and anyone that participates might be able to assist you.

If you are in need of a service with an SLA that covers response times for questions then you may want to consider talking to us about a [subscription](https://www.elastic.co/subscriptions).

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

---

<div class="post-metadata">

**Author:** ![chandu2](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chandu2](https://discuss.elastic.co/u/chandu2)\
**Post date:** [April 2, 2021, 12:02pm UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/4 "2021-04-02T12:02:04Z")

</div>

Okay. I will follow it. Sorry for the inconvience. But I didn't open multiple topics nor pinged anyone directly. Anyway thanks.

---

<div class="post-metadata">

**Author:** ![idanmo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/idanmo/32/50092_2.png) [@idanmo](https://discuss.elastic.co/u/idanmo)\
**Post date:** [April 5, 2021, 6:48am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/5 "2021-04-05T06:48:04Z")

</div>

> [@chandu2](#):
>
> `Illegal unquoted character ((CTRL-CHAR, code 10))`

Hi,  
This could be related to a malformed gcs-credentials JSON.  
Please refer to [this](https://www.elastic.co/guide/en/cloud-on-k8s/1.3/k8s-snapshots.html#k8s-secure-settings) ECK documentation page where there's an example of the gcs-credentials JSON and how to create the secret. Also make sure that the JSON is valid.

If you are still experiencing that error, please provide more details (the full stack trace, how you create the secret, its contents w/o the actual keys etc.)

---

<div class="post-metadata">

**Author:** ![chandu2](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chandu2](https://discuss.elastic.co/u/chandu2)\
**Post date:** [April 5, 2021, 7:46am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/6 "2021-04-05T07:46:32Z")

</div>

Thanks @idanmo , I have given the corrupted credentials. It helps.

---

<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:** [May 3, 2021, 7:47am UTC](https://discuss.elastic.co/t/getting-error-after-injecting-gcs-credentials-in-elasticsearch/268989/7 "2021-05-03T07:47:04Z")

</div>

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