Temporal docker container throwing errors


I have successfully set up temporal server container and trying to setup temporal web on top of it.

I have built docker image from temporal web from 1.10.0 tag without making any changes and image was built fine. But running a container on that image is giving below error. can you direct me to any documentation on the changes I may need to do before creating the image and containers

docker run --network host --name temporal-web temporalio/web
throw err;

Error: ENOENT: no such file or directory, open ‘service.proto’
at Object.openSync (fs.js:476:3)
at Object.readFileSync (fs.js:377:35)
at fetch (/usr/app/node_modules/protobufjs/src/root.js:172:34)
at Root.load (/usr/app/node_modules/protobufjs/src/root.js:206:13)
at Root.loadSync (/usr/app/node_modules/protobufjs/src/root.js:247:17)
at Object.loadSync (/usr/app/node_modules/@grpc/proto-loader/build/src/index.js:223:29)
at new TemporalClient (/usr/app/server/temporal-client/temporal-client.js:42:41)
at Object. (/usr/app/server/routes.js:14:53)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/usr/app/server/index.js:7:12)
at Module._compile (internal/modules/cjs/loader.js:1063:30) {
errno: -2,
syscall: ‘open’,
code: ‘ENOENT’,
path: ‘service.proto’

Hi @Krishna_Munagala

when building a docker image from the source files, first run make from the root of web repo. This will fetch a gitmodule that contains gRPC API proto definitions. Ref GitHub - temporalio/web: Temporal Web UI

1 Like

Thank you @Ruslan. I have pulled the temporal-web docker image and used that instead of building it. Thank for the suggestion, will try that.

1 Like