Temporal with elastic search fails to come up

Hi,

I was trying out temporal for a project. I downloaded the docker-compose files and the basic one with cassandra worked well. Then I also tried out the elasticsearch version (docker-compose-es.yml), and that also worked well however, after few times stopping and restarting various models, the elasticsearch version does not come up. The web shows error message - “14 unavailable: unable to connect to all services” and the server shows the following error. Any suggestions on what I should look into?

Thanks!

temporal-web_1          | OperationalError: 14 UNAVAILABLE: failed to connect to all addresses

temporal-web_1 | at Object.exports.createStatusError (/usr/app/node_modules/grpc/src/common.js:91:15)
temporal-web_1 | at Object.onReceiveStatus (/usr/app/node_modules/grpc/src/client_interceptors.js:1209:28)
temporal-web_1 | at InterceptingListener._callNext (/usr/app/node_modules/grpc/src/client_interceptors.js:568:42)
temporal-web_1 | at InterceptingListener.onReceiveStatus (/usr/app/node_modules/grpc/src/client_interceptors.js:618:8)
temporal-web_1 | at callback (/usr/app/node_modules/grpc/src/client_interceptors.js:847:24) {
temporal-web_1 | cause: Error: 14 UNAVAILABLE: failed to connect to all addresses
temporal-web_1 | at Object.exports.createStatusError (/usr/app/node_modules/grpc/src/common.js:91:15)
temporal-web_1 | at Object.onReceiveStatus (/usr/app/node_modules/grpc/src/client_interceptors.js:1209:28)
temporal-web_1 | at InterceptingListener._callNext (/usr/app/node_modules/grpc/src/client_interceptors.js:568:42)
temporal-web_1 | at InterceptingListener.onReceiveStatus (/usr/app/node_modules/grpc/src/client_interceptors.js:618:8)
temporal-web_1 | at callback (/usr/app/node_modules/grpc/src/client_interceptors.js:847:24) {
temporal-web_1 | code: 14,
temporal-web_1 | metadata: Metadata { _internal_repr: {}, flags: 0 },
temporal-web_1 | details: ‘failed to connect to all addresses’
temporal-web_1 | },
temporal-web_1 | isOperational: true,
temporal-web_1 | code: 14,
temporal-web_1 | metadata: Metadata { _internal_repr: {}, flags: 0 },
temporal-web_1 | details: ‘failed to connect to all addresses’
temporal-web_1 | }

One possibility is that docker doesn’t give enough memory to the service. And ES is quite a memory hungly. Try increasing maximum memory Docker is allowed to use.

Thanks! I increased docker memory to 8GB and it worked after that.

1 Like