# Logstash keystore error after upgrade

**URL:** <https://discuss.elastic.co/t/logstash-keystore-error-after-upgrade/273683>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [May 21, 2021, 3:38pm UTC](https://discuss.elastic.co/t/logstash-keystore-error-after-upgrade/273683 "2021-05-21T15:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutierrezfj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gutierrezfj/32/92727_2.png) [@gutierrezfj](https://discuss.elastic.co/u/gutierrezfj)\
**Post date:** [May 21, 2021, 3:38pm UTC](https://discuss.elastic.co/t/logstash-keystore-error-after-upgrade/273683/1 "2021-05-21T15:38:47Z")

</div>

Hi,

I did a deployment and upgrade, from logstash 7.6.2 deployed binary to logstash 7.10.2 dockerized.  
I used the same logstash.keystore file (copy and paste .keystore from 7.6.2 to /usr/share/logstash/config inside container 7.10.2).

Next you find the errors reported:  
Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:.monitoring-logstash...  
Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:my\_pipeline....

Both errors have the same exception:  
exception=\>Java::OrgLogstashSecretStore::SecretStoreException::LoadException,  
:message=\>Found a file at /usr/share/logstash/config/logstash.keystore, but it is not a valid Logstash keystore.

Was it a mistake to use the same file in different logstash versions?

notes:

1. xpack.monitoring.elasticsearch.user/password defined in logstash.yml it has no variables. Shouldn't take them from keystore.
2. my\_pipeline in output elasticsearch definition contains variables for username and password.

Does anybody have any suggestion to overcome the error?

thanks!!

---

<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:** [June 18, 2021, 3:39pm UTC](https://discuss.elastic.co/t/logstash-keystore-error-after-upgrade/273683/2 "2021-06-18T15:39:02Z")

</div>

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