# keystore error in elastic helm chart

**URL:** https://discuss.elastic.co/t/keystore-error-in-elastic-helm-chart/355939
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [March 21, 2024, 8:01pm UTC](https://discuss.elastic.co/t/keystore-error-in-elastic-helm-chart/355939 "2024-03-21T20:01:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed102](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Ahmed102](https://discuss.elastic.co/u/Ahmed102)
#### Post date: [March 21, 2024, 8:01pm UTC](https://discuss.elastic.co/t/keystore-error-in-elastic-helm-chart/355939/1 "2024-03-21T20:01:52Z")

</div>

Hi,  
I was trying to use the Elasticsearch helm chart here ([elasticsearch 8.5.1 · elastic/elastic](https://artifacthub.io/packages/helm/elastic/elasticsearch))

I created a secret called s3-creds-pass, with my username and pass

```auto
apiVersion: v1
data:
  s3.client.default.access_key: dXNlcg==
  s3.client.default.secret_key: cGFzc3dvcmQ=
kind: Secret
metadata:
  name: s3-creds-pass
  namespace: elastic

```

Then I installed the repo and only changed those values:

```auto
keystore:
  - secretName: s3-creds-pass

replicas: 1
minimumMasterNodes: 1

service:
  enabled: true
  type: NodePort
  nodePort: "30920"

```

All the time I get this error

```auto
k -n elastic logs elasticsearch-master-0 -f
Defaulted container "elasticsearch" out of: elasticsearch, configure-sysctl (init), keystore (init)
Exception in thread "main" java.nio.file.FileSystemException: /usr/share/elasticsearch/config/elasticsearch.keystore.tmp -> /usr/share/elasticsearch/config/elasticsearch.keystore: Device or resource busy
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:420)
        at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:266)
        at java.base/java.nio.file.Files.move(Files.java:1430)
        at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:498)
        at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:412)
        at org.elasticsearch.cli.keystore.AddStringKeyStoreCommand.executeCommand(AddStringKeyStoreCommand.java:102)
        at org.elasticsearch.cli.keystore.BaseKeyStoreCommand.execute(BaseKeyStoreCommand.java:64)
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.Command.main(Command.java:50)
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

```

Can anyone help me?

---

<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: [April 18, 2024, 8:02pm UTC](https://discuss.elastic.co/t/keystore-error-in-elastic-helm-chart/355939/2 "2024-04-18T20:02:51Z")

</div>

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