Elasticsearch connector fails to start in SRS docker container

When I deploy the PEGA SRS docker image package to the docker container, the container cannot start due to ElasticSearch connection and gives the following error. Elastic Search instance has enabled paramater as “xpack.security.enabled: true”. (I able to connect with elastic search user and psw into Elastic search node successfuly. There is no problem for user information.)

{“timestamp”:“2025-03-06T20:41:22.712”,“message”:"Error starting Micronaut server: Bean definition [com.pega.fnx.cmd.spec.storage.SingleStorageManager]

could not be loaded: Error instantiating bean of type [com.pega.fnx.cmd.spec.storage.SingleStorageManager]\n\nMessage: Cannot create an Elasticsearch connector for endpoint ‘http://localhost:9200’\nPath Taken: new SingleStorageManager(StorageConnectorFactory factory,MeterRegistry meterRegistry)",“logger”:“io.micronaut.runtime.Micronaut”,“thread”:“main”,“level”:“ERROR”,“stack_trace”:"io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [com.pega.fnx.cmd.spec.storage.SingleStorageManager] could not be loaded: Error instantiating bean of type [com.pega.fnx.cmd.spec.storage.SingleStorageManager]\n\nMessage: Cannot create an Elasticsearch connector for endpoint ‘http://localhost:9200’\nPath Taken: new SingleStorageManager

io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [com.pega.fnx.cmd.spec.storage.SingleStorageManager]\n\nMessage: Cannot create an Elasticsearch connector for endpoint ‘http://localhost:9200’\nPath Taken: new SingleStorageManager

com.pega.fnx.cmd.spec.storage.StorageException: Cannot create an Elasticsearch connector for endpoint ‘http://localhost:9200’\n\tat

org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=security_exception, reason=missing authentication credentials for REST request [/]]\n\tat

@srkalem it would help if you quote the INC of the parallel ticket you logged on the same day as posting the question on the forum.

I see that our GCS team resolved the question in INC-C1047(Elasticsearch connector fails to start in SRS docker container)

In the ticket you clarified that you were using an unsupported configuration:

ie

"… not using docker compose or any orchecstration envs which are k8s or docker swarm.

Just try to make it Up as a docker container with below parameters. docker run --rm --name srs --network host"


Pega supports custom images built for use with Kubernetes:
https://docs.pega.com/bundle/platform-88/page/platform/deployment/client-managed-cloud/pega-docker-images-manage.html
Your approach doesn’t seem to be supported.

Please follow documentation.