website
website copied to clipboard
NPM socket timeout
Describe the problem
make up fails on RUN npm install -g npm firebase-tools superstatic step:
#13 257.6 npm ERR! code ERR_SOCKET_TIMEOUT
#13 257.6 npm ERR! network Socket timeout
#13 257.6 npm ERR! network This is a problem related to network connectivity.
#13 257.6 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#13 257.6 npm ERR! network
#13 257.6 npm ERR! network If you are behind a proxy, please make sure that the
#13 257.6 npm ERR! network 'proxy' config is set properly. See: 'npm help config'
#13 257.6
Using main branch (654605a448666779cd295388ec28fc900f2587f7)
Logs
make up
docker-compose up site
WARNING: The DISABLE_TESTS variable is not set. Defaulting to a blank string.
WARNING: The FIREBASE_ALIAS variable is not set. Defaulting to a blank string.
WARNING: The FIREBASE_TOKEN variable is not set. Defaulting to a blank string.
Building site
[+] Building 170.8s (12/21)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 40B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.0-buster 0.6s
=> [dev 1/17] FROM docker.io/library/ruby:3.0-buster@sha256:73271712d33818aa324b0766b2913b3661c01c6964dd5b629ef656fae076125a 0.0s
=> [internal] load build context 1.4s
=> => transferring context: 2.05MB 1.4s
=> CACHED [dev 2/17] RUN curl -sL https://deb.nodesource.com/setup_17.x -o node_setup.sh && bash node_setup.sh 1> /dev/null 0.0s
=> CACHED [dev 3/17] RUN apt-get update && apt-get install -yq --no-install-recommends build-essential vim git diffutils 0.0s
=> CACHED [dev 4/17] WORKDIR /app [+] Building 171.0s (12/21)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 40B 0.0s
=> [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.0-buster 0.6s => [dev 1/17] FROM docker.io/library/ruby:3.0-buster@sha256:73271712d33818aa324b0766b2913b3661c01c6964dd5b629ef656fae076125a 0.0s
=> [internal] load build context 1.4[+] Building 259.9s (13/21) => [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 40B 0.0s0 => [internal] load .dockerignore 0.0s0 => => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.0-buster 0.6s0 => [dev 1/17] FROM docker.io/library/ruby:3.0-buster@sha256:73271712d33818aa324b0766b2913b3661c01c6964dd5b629ef656fae076125a 0.0s0 => [internal] load build context 1.4s
=> => transferring context: 2.05MB 1.4s0 => CACHED [dev 2/17] RUN curl -sL https://deb.nodesource.com/setup_17.x -o node_setup.sh && bash node_setup.sh 1> /dev/null 0.0s0 => CACHED [dev 3/17] RUN apt-get update && apt-get install -yq --no-install-recommends build-essential vim git 0.0s
=> CACHED [dev 4/17] WORKDIR /app 0.0s0 => CACHED [dev 5/17] RUN gem install bundler 0.0s8 => CACHED [dev 6/17] COPY Gemfile Gemfile.lock ./ 0.0s
=> CACHED [dev 7/17] RUN bundle install 0.0s => CACHED [dev 8/17] COPY package.json package-lock.json ./ 0.0s => ERROR [dev 9/17] RUN npm install -g npm firebase-tools superstatic 257.7s
------ > [dev 9/17] RUN npm install -g npm firebase-tools superstatic: #13 101.9 npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. #13 102.0 npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#13 104.1 npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#13 111.7 npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
#13 112.0 npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#13 123.9 npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
#13 124.3 npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#13 137.2 npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#13 257.5 npm notice
#13 257.5 npm notice New minor version of npm available! 8.3.1 -> 8.4.0
#13 257.5 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.4.0>
#13 257.5 npm notice Run `npm install -g [email protected]` to update!
#13 257.5 npm notice
#13 257.6 npm ERR! code ERR_SOCKET_TIMEOUT
#13 257.6 npm ERR! network Socket timeout
#13 257.6 npm ERR! network This is a problem related to network connectivity.
#13 257.6 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#13 257.6 npm ERR! network
#13 257.6 npm ERR! network If you are behind a proxy, please make sure that the
#13 257.6 npm ERR! network 'proxy' config is set properly. See: 'npm help config'
#13 257.6
#13 257.6 npm ERR! A complete log of this run can be found in:
#13 257.6 npm ERR! /root/.npm/_logs/2022-01-28T20_19_21_597Z-debug-0.log
------
executor failed running [/bin/sh -c npm install -g npm firebase-tools superstatic]: exit code: 1
ERROR: Service 'site' failed to build : Build failed
make: *** [up] Error 1
Expected fix
No response
Additional context
No response
Is this happening consistently or occasionally? Are you able to try on a different network?
What page is this on?
We're no longer using superstatic for staging the site, so I'm going to close this. If anyone sees this again, please open a new issue.