Worker cannot start in docker, error starting scanner context deadline exceeded

Hi All,

Need help please.
Got this error when docker run SERVICES=worker:

“level”:“fatal”,“ts”:“2022-04-04T16:23:24.074Z”,“msg”:“error starting scanner”,“service”:“worker”,“error”:“context deadline exceeded”,“logging-call-at”:“service.go:233”,“stacktrace”:“go.temporal.io/server/common/log.(*zapLogger).Fatal\n\t/temporal/common/log/zap_logger.go:150\ngo.temporal.io/server/service/worker.(*Service).startScanner\n\t/temporal/service/worker/service.go:233\ngo.temporal.io/server/service/worker.(*Service).Start\n\t/temporal/service/worker/service.go:153\ngo.temporal.io/server/service/worker.ServiceLifetimeHooks.func1.1\n\t/temporal/service/worker/fx.go:80”}

I saw that the already can reach front end, history and matching servers:

{“level”:“info”,“ts”:“2022-04-04T16:23:13.812Z”,“msg”:“Current reachable members”,“service”:“worker”,“component”:“service-resolver”,“service”:“frontend”,“addresses”:[“172.17.0.2:7233”],“logging-call-at”:“rpServiceResolver.go:266”}
{“level”:“info”,“ts”:“2022-04-04T16:23:13.812Z”,“msg”:“Current reachable members”,“service”:“worker”,“component”:“service-resolver”,“service”:“matching”,“addresses”:[“172.17.0.4:7235”],“logging-call-at”:“rpServiceResolver.go:266”}
{“level”:“info”,“ts”:“2022-04-04T16:23:13.812Z”,“msg”:“Current reachable members”,“service”:“worker”,“component”:“service-resolver”,“service”:“history”,“addresses”:[“172.17.0.3:7234”],“logging-call-at”:“rpServiceResolver.go:266”}
{“level”:“info”,“ts”:“2022-04-04T16:23:13.812Z”,“msg”:“Current reachable members”,“service”:“worker”,“component”:“service-resolver”,“service”:“worker”,“addresses”:[“172.17.0.5:7239”],“logging-call-at”:“rpServiceResolver.go:266”}

The command to run the docker is:
docker run -e SERVICES=worker -d --name=temporal-server-worker -e LOG_LEVEL=debug,info -e “TEMPORAL_ADDRESS=temporal-server-frontend.temporal:7233” -e “CASSANDRA_PORT=9042” -e “CASSANDRA_SEEDS=192.168.0.7” -e “DB=cassandra” -e “ENABLE_ES=true” -e “ES_SCHEME=http” -e “ES_SEEDS=192.168.0.7” -e “ES_PORT=9200” -e “ES_VERSION=v7” -e “ES_VIS_INDEX=temporal_visibility_v1_nft” -e “TEMPORAL_CLI_NAMESPACE=grouporder-namespace” -e “NUM_HISTORY_SHARDS=20” -e “CASSANDRA_REPLICATION_FACTOR=1” -e “ES_USER=” -e “ES_PWD=” registry-openshift-image-registry.apps.test.co.id/nft/temporal.server

Can help?

Thanks

Hi @ridwan.santoso
Is/was this issue related to Temporal Server cannot starts and unable to bootstrap ringpop - #4 by ridwan.santoso?

Hi Tihomir,

Yes, it turns out I need to use VMWare Host IP as I am using VMWare in my laptop and multiple dockers in VMWare, so cannot use docker IP.
Furthermore in docker run needs to use network=host.

regards,

ridwan