# Elastic search not working in Live env but in staging yes

**URL:** <https://forum.shopware.com/t/elastic-search-not-working-in-live-env-but-in-staging-yes/103352>\
**Category:** Programming (EN)\
**Tags:** general, administration, programming\
**Created:** [18. März 2024 um 10:27 UTC](https://forum.shopware.com/t/elastic-search-not-working-in-live-env-but-in-staging-yes/103352 "2024-03-18T10:27:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigeeys](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vigeeys](https://forum.shopware.com/u/vigeeys)\
**Post date:** [18. März 2024 um 10:27 UTC](https://forum.shopware.com/t/elastic-search-not-working-in-live-env-but-in-staging-yes/103352/1 "2024-03-18T10:27:42Z")

</div>

hello there guys,  
We have configured elasticsearch in live and staging where in staging works everything fine  
but in live when I run for eg bin/console es:admin:index i get this error:

[ERROR] Admin elasticsearch is not enabled

.env is same as staging with different ports for elastic search

SHOPWARE\_ES\_HOSTS=„localhost:9200“

SHOPWARE\_ES\_ENABLED=„1“

SHOPWARE\_ES\_INDEXING\_ENABLED=„1“

SHOPWARE\_ES\_THROW\_EXCEPTION=1

ADMIN\_OPENSEARCH\_URL=„localhost:9200“

SHOPWARE\_ADMIN\_ES\_ENABLED=„1“

SHOPWARE\_ADMIN\_ES\_REFRESH\_INDICES=„1“

SHOPWARE\_ADMIN\_ES\_INDEX\_PREFIX=„sw-admin“

SHOPWARE\_HTTP\_CACHE\_ENABLED=„1“

also when I run bin/console es:admin:index the terminal breaks and I get no error no warning no message.

I would appreciate it if anyone can assist in this case.
