question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during docker-compose up

See original GitHub issue

Getting the below error when i run docker-compose up node-server envoy commonjs-client

C:\Users\Shankar.Mohan\Desktop\gRPC\grpc-web>docker-compose up node-server envoy commonjs-client
Building prereqs
Step 1/19 : FROM grpcweb/common
 ---> 2d584aa3829e
Step 2/19 : ARG MAKEFLAGS=-j8
 ---> Using cache
 ---> c9d6e377c722
Step 3/19 : ARG BUILDIFIER_VERSION=1.0.0
 ---> Using cache
 ---> bffb69906e37
Step 4/19 : ARG BAZEL_VERSION=3.7.0
 ---> Using cache
 ---> a47fc2b41500
Step 5/19 : RUN echo "\nloglevel=error\n" >> $HOME/.npmrc
 ---> Using cache
 ---> b9e3d3a21920
Step 6/19 : WORKDIR /github/grpc-web
 ---> Using cache
 ---> 37b86d9e4903
Step 7/19 : COPY ./Makefile ./Makefile
 ---> Using cache
 ---> 27dbb2eb7146
Step 8/19 : COPY ./WORKSPACE ./WORKSPACE
 ---> Using cache
 ---> 9c8fd7330112
Step 9/19 : COPY ./bazel ./bazel
 ---> Using cache
 ---> 74b6cc480883
Step 10/19 : COPY ./javascript ./javascript
 ---> Using cache
 ---> 00975efa57aa
Step 11/19 : COPY ./net ./net
 ---> Using cache
 ---> fec6a91a479c
Step 12/19 : COPY ./packages ./packages
 ---> Using cache
 ---> 6f70f8d6ba03
Step 13/19 : COPY ./scripts ./scripts
 ---> Using cache
 ---> bdd167561345
Step 14/19 : COPY ./test ./test
 ---> Using cache
 ---> d047d517801b
Step 15/19 : RUN ./scripts/init_submodules.sh
 ---> Running in 8de583750cd3
/bin/sh: 1: ./scripts/init_submodules.sh: not found
ERROR: Service 'prereqs' failed to build: The command '/bin/sh -c ./scripts/init_submodules.sh' returned a non-zero code: 127

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
shankarmohannamakkalcommented, Dec 14, 2020

Thanks its helpful and it works after added the below line in \gRPC\grpc-web\net\grpc\gateway\docker\prereqs\Dockerfile

RUN sed $'s/\r$//' ./scripts/init_submodules.sh > ./scripts/init_submodules.sh

before line

RUN ./scripts/init_submodules.sh

But now i am getting another error during docker-compose up

C:\Users\Shankar.Mohan\Desktop\gRPC\grpc-web>docker-compose up -d node-server envoy commonjs-client
Building prereqs
Step 1/20 : FROM grpcweb/common
 ---> 2d584aa3829e
Step 2/20 : ARG MAKEFLAGS=-j8
 ---> Using cache
 ---> c9d6e377c722
Step 3/20 : ARG BUILDIFIER_VERSION=1.0.0
 ---> Using cache
 ---> bffb69906e37
Step 4/20 : ARG BAZEL_VERSION=3.7.0
 ---> Using cache
 ---> a47fc2b41500
Step 5/20 : RUN echo "\nloglevel=error\n" >> $HOME/.npmrc
 ---> Using cache
 ---> b9e3d3a21920
Step 6/20 : WORKDIR /github/grpc-web
 ---> Using cache
 ---> 37b86d9e4903
Step 7/20 : COPY ./Makefile ./Makefile
 ---> Using cache
 ---> 27dbb2eb7146
Step 8/20 : COPY ./WORKSPACE ./WORKSPACE
 ---> Using cache
 ---> 9c8fd7330112
Step 9/20 : COPY ./bazel ./bazel
 ---> Using cache
 ---> 74b6cc480883
Step 10/20 : COPY ./javascript ./javascript
 ---> Using cache
 ---> 00975efa57aa
Step 11/20 : COPY ./net ./net
 ---> c603094a3dc4
Step 12/20 : COPY ./packages ./packages
 ---> c30efa0dcb82
Step 13/20 : COPY ./scripts ./scripts
 ---> 8bb456908054
Step 14/20 : COPY ./test ./test
 ---> 8753eceb7cff
Step 15/20 : RUN sed $'s/\r$//' ./scripts/init_submodules.sh > ./scripts/init_submodules.sh
 ---> Running in a366a44e5194
Removing intermediate container a366a44e5194
 ---> 4cef91f6acc1
Step 16/20 : RUN ./scripts/init_submodules.sh
 ---> Running in b40181e82f7f
Removing intermediate container b40181e82f7f
 ---> 749fc00ef39c
Step 17/20 : RUN cd ./packages/grpc-web &&   npm install &&   npm run build &&   npm link
 ---> Running in 86c7fdcab8f8
added 356 packages from 663 contributors and audited 359 packages in 32.619s

7 packages are looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

> grpc-web@1.2.1 build /github/grpc-web/packages/grpc-web
> node scripts/build.js

/github/grpc-web/packages/grpc-web/node_modules/.bin/google-closure-compiler --js=exports.js --js=../../javascript --js=../../third_party/closure-library --entry_point=grpc.web.Exports --externs=externs.js --dependency_mode=PRUNE --compilation_level=ADVANCED_OPTIMIZATIONS --generate_exports --export_local_property_definitions --js_output_file=index.js
../../javascript/net/grpc/web/clientreadablestream.js:29: ERROR - [JSC_UNDEFINED_VARIABLE] variable goog is undeclared
goog.module('grpc.web.ClientReadableStream');
^^^^

1 error(s), 0 warning(s)
npm ERR! code ENOENT
npm ERR! syscall access
npm ERR! path /github/grpc-web/packages/grpc-web/node_modules/grpc-web.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, access '/github/grpc-web/packages/grpc-web/node_modules/grpc-web.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-12-14T11_38_52_574Z-debug.log
ERROR: Service 'prereqs' failed to build: The command '/bin/sh -c cd ./packages/grpc-web &&   npm install &&   npm run build &&   npm link' returned a non-zero code: 254
3reactions
shankarmohannamakkalcommented, Jan 11, 2021
PS C:\Users\Shankar.Mohan\Desktop\grpc\grpc-web> git submodule init
Submodule 'third_party/closure-library' (https://github.com/google/closure-library.git) registered for path 'third_party/closure-library'
Submodule 'third_party/grpc' (https://github.com/grpc/grpc.git) registered for path 'third_party/grpc'
Submodule 'third_party/nginx/src' (https://nginx.googlesource.com/nginx) registered for path 'third_party/nginx/src'
Submodule 'third_party/openssl' (https://github.com/openssl/openssl.git) registered for path 'third_party/openssl'

PS C:\Users\Shankar.Mohan\Desktop\grpc\grpc-web> git submodule update
Cloning into 'C:/Users/Shankar.Mohan/Desktop/gRPC/grpc-web/third_party/closure-library'...
Cloning into 'C:/Users/Shankar.Mohan/Desktop/gRPC/grpc-web/third_party/grpc'...
Cloning into 'C:/Users/Shankar.Mohan/Desktop/gRPC/grpc-web/third_party/nginx/src'...
Cloning into 'C:/Users/Shankar.Mohan/Desktop/gRPC/grpc-web/third_party/openssl'...
Submodule path 'third_party/closure-library': checked out 'be4ae2429d4cce84c9c0ede68328ae010c24328a'
Submodule path 'third_party/grpc': checked out '9655f1f6449dca36312489f9c82560c32050af71'
Submodule path 'third_party/nginx/src': checked out '6feddd653e37517f888d8ba7a38ceb4f71063818'
Submodule path 'third_party/openssl': checked out '5dd94f1847c744929a3bd24819f1c99644bb18c7'

Then i tried run docker-compose up -d node-server envoy commonjs-client and getting the same error again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-compose up giving error - Stack Overflow
Past the run.sh script. Building and running are to different step. If you provide a command that is not available in your container,...
Read more >
How to get detailed error message using docker-compose up ...
means that Docker tried to run the dotnet executable inside the container, but it couldn't start because the dotnet binary in the image...
Read more >
Docker compose up gives error - General Discussions
hi, i am pretty new in docker and docker compose. I write a web app, python flask. and I wanna dockerize it. but...
Read more >
`docker compose up` doesn't start containers (error message
docker compose up doesn't start containers with the following error message after updating Docker for Mac to 4.3.0 (71786) .
Read more >
Docker-compose up throwing error | Edureka Community
ERROR: Version in "./docker-compose. yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found