Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

docker-compose build failed #3019

Closed
daniel-cao-byte opened this issue Nov 18, 2021 · 2 comments · Fixed by #3028
Closed

docker-compose build failed #3019

daniel-cao-byte opened this issue Nov 18, 2021 · 2 comments · Fixed by #3028

Comments

@daniel-cao-byte
Copy link

Description

docker-compose build run into error.

Environment

  • Browser:
  • Wallet: MetaMask
  • Safe:
  • Environment:
    • production (rinkeby)

Steps to reproduce

  1. git checkout main
  2. cp .env.example .env
  3. docker-compose build

Expected result

build docker image success.

Obtained result

build failed, with error: error /app/node_modules/postinstall-postinstall: Command failed.

detailed output as below:

Building safe-react
[+] Building 195.3s (11/12)
 => [internal] load build definition from Dockerfile                                                                                                                                        0.0s
 => => transferring dockerfile: 260B                                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                                           0.0s
 => => transferring context: 68B                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/node:14                                                                                                                                  3.4s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                                 0.0s
 => [1/7] FROM docker.io/library/node:14@sha256:fbd6954d3941ebd1e12cd995dc10a4994535aa44d47271a91a829a2d1f88fc4c                                                                            0.0s
 => [internal] load build context                                                                                                                                                           0.9s
 => => transferring context: 41.30MB                                                                                                                                                        0.9s
 => CACHED [2/7] RUN apt-get update && apt-get install -y libusb-1.0-0 libusb-1.0-0-dev libudev-dev                                                                                         0.0s
 => CACHED [3/7] WORKDIR /app                                                                                                                                                               0.0s
 => CACHED [4/7] COPY package.json ./                                                                                                                                                       0.0s
 => CACHED [5/7] COPY yarn.lock ./                                                                                                                                                          0.0s
 => ERROR [6/7] RUN yarn install                                                                                                                                                          190.8s
------
 > [6/7] RUN yarn install:
#11 0.892 yarn install v1.22.15
#11 1.245 [1/4] Resolving packages...
#11 2.561 [2/4] Fetching packages...
#11 2.582 warning Pattern ["ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-ethereumjs-abi-0.6.8-ee3994657fa7a427238e6ba92a84d0b529bbcde0/node_modules/ethereumjs-abi" as pattern ["ethereumjs-abi@^0.6.8","ethereumjs-abi@0.6.8","ethereumjs-abi@0.6.8"]. This could result in non-deterministic behavior, skipping.
#11 115.4 info fsevents@2.3.2: The platform "linux" is incompatible with this module.
#11 115.4 info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 115.4 info fsevents@1.2.13: The platform "linux" is incompatible with this module.
#11 115.4 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 115.4 info dmg-license@1.0.9: The platform "linux" is incompatible with this module.
#11 115.4 info "dmg-license@1.0.9" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 115.4 info iconv-corefoundation@1.1.6: The platform "linux" is incompatible with this module.
#11 115.4 info "iconv-corefoundation@1.1.6" is an optional dependency and failed compatibility check. Excluding it from installation.
#11 115.4 [3/4] Linking dependencies...
#11 115.4 warning " > sass-loader@9.0.3" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed@1.13.6" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed > @toruslabs/fetch-node-details@3.0.2" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed > @toruslabs/http-helpers@1.4.0" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed > @toruslabs/openlogin-jrpc@1.0.0" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed > @toruslabs/torus.js@3.1.0" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning " > react-qr-reader@2.2.1" has incorrect peer dependency "react@~16".
#11 115.4 warning " > react-qr-reader@2.2.1" has incorrect peer dependency "react-dom@~16".
#11 115.4 warning "bnc-onboard > @toruslabs/torus-embed > @toruslabs/openlogin-jrpc > @toruslabs/openlogin-utils@1.0.0" has unmet peer dependency "@babel/runtime@7.x".
#11 115.4 warning " > react-final-form-listeners@1.0.3" has unmet peer dependency "prop-types@^15.6.0".
#11 115.4 warning " > react-ga@3.3.0" has unmet peer dependency "prop-types@^15.6.0".
#11 115.4 warning " > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
#11 115.5 warning "@storybook/addon-actions > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react@15.x || 16.x || 16.4.0-alpha.0911da3".
#11 115.5 warning "@storybook/addon-actions > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
#11 115.5 warning "@storybook/addon-actions > @storybook/api > @reach/router > create-react-context@0.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
#11 115.5 warning " > @storybook/preset-create-react-app@3.2.0" has unmet peer dependency "@storybook/node-logger@*".
#11 115.5 warning "@storybook/preset-create-react-app > react-docgen-typescript-plugin@1.0.0" has unmet peer dependency "webpack@>= 4".
#11 154.3 [4/4] Building fresh packages...
#11 190.6 error /app/node_modules/postinstall-postinstall: Command failed.
#11 190.6 Exit code: 1
#11 190.6 Command: node ./run.js
#11 190.6 Arguments:
#11 190.6 Directory: /app/node_modules/postinstall-postinstall
#11 190.6 Output:
#11 190.6 No patch files found
#11 190.6 Error occured:  No files passed.
#11 190.6 `./src/logic/contracts/artifacts/*.json` didn't match any input files in /app
#11 190.6 Run with --show-stack-traces to see the full stacktrace
#11 190.6 error Command failed with exit code 1.
#11 190.6 error Command failed with exit code 1.
#11 190.6 error Command failed with exit code 1.
#11 190.6 child_process.js:866
#11 190.6     throw err;
#11 190.6     ^
#11 190.6
#11 190.6 Error: Command failed: yarn run postinstall
#11 190.6 No patch files found
#11 190.6 Error occured:  No files passed.
#11 190.6 `./src/logic/contracts/artifacts/*.json` didn't match any input files in /app
#11 190.6 Run with --show-stack-traces to see the full stacktrace
#11 190.6 error Command failed with exit code 1.
#11 190.6 error Command failed with exit code 1.
#11 190.6 error Command failed with exit code 1.
#11 190.6
#11 190.6     at checkExecSyncError (child_process.js:790:11)
#11 190.6     at execSync (child_process.js:863:15)
#11 190.6     at Object.<anonymous> (/app/node_modules/postinstall-postinstall/run.js:15:5)
#11 190.6     at Module._compile (internal/modules/cjs/loader.js:1085:14)
#11 190.6     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
#11 190.6     at Module.load (internal/modules/cjs/loader.js:950:32)
#11 190.6     at Function.Module._load (internal/modules/cjs/loader.js:790:12)
#11 190.6     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
#11 190.6     at internal/main/run_main_module.js:17:47 {
#11 190.6   status: 1,
#11 190.6   signal: null,
#11 190.6   output: [
#11 190.6     null,
#11 190.6     Buffer(2190) [Uint8Array] [
#11 190.6       121,  97, 114, 110,  32, 114, 117, 110,  32, 118,  49,  46,
#11 190.6        50,  50,  46,  49,  53,  10,  36,  32, 112,  97, 116,  99,
#11 190.6       104,  45, 112,  97,  99, 107,  97, 103, 101,  32,  38,  38,
#11 190.6        32, 101, 108, 101,  99, 116, 114, 111, 110,  45,  98, 117,
#11 190.6       105, 108, 100, 101, 114,  32, 105, 110, 115, 116,  97, 108,
#11 190.6       108,  45,  97, 112, 112,  45, 100, 101, 112, 115,  32,  38,
#11 190.6        38,  32, 121,  97, 114, 110,  32, 103, 101, 110, 101, 114,
#11 190.6        97, 116, 101,  45, 116, 121, 112, 101, 115,  10, 112,  97,
#11 190.6       116,  99, 104,  45,
#11 190.6       ... 2090 more items
#11 190.6     ],
#11 190.6     Buffer(305) [Uint8Array] [
#11 190.6        78, 111,  32, 112,  97, 116,  99, 104,  32, 102, 105, 108,
#11 190.6       101, 115,  32, 102, 111, 117, 110, 100,  10,  69, 114, 114,
#11 190.6       111, 114,  32, 111,  99,  99, 117, 114, 101, 100,  58,  32,
#11 190.6        32,  78, 111,  32, 102, 105, 108, 101, 115,  32, 112,  97,
#11 190.6       115, 115, 101, 100,  46,  10,  96,  46,  47, 115, 114,  99,
#11 190.6        47, 108, 111, 103, 105,  99,  47,  99, 111, 110, 116, 114,
#11 190.6        97,  99, 116, 115,  47,  97, 114, 116, 105, 102,  97,  99,
#11 190.6       116, 115,  47,  42,  46, 106, 115, 111, 110,  96,  32, 100,
#11 190.6       105, 100, 110,  39,
#11 190.6       ... 205 more items
#11 190.6     ]
#11 190.6   ],
#11 190.6   pid: 625,
#11 190.6   stdout: Buffer(2190) [Uint8Array] [
#11 190.6     121,  97, 114, 110,  32, 114, 117, 110,  32, 118,  49,  46,
#11 190.6      50,  50,  46,  49,  53,  10,  36,  32, 112,  97, 116,  99,
#11 190.6     104,  45, 112,  97,  99, 107,  97, 103, 101,  32,  38,  38,
#11 190.6      32, 101, 108, 101,  99, 116, 114, 111, 110,  45,  98, 117,
#11 190.6     105, 108, 100, 101, 114,  32, 105, 110, 115, 116,  97, 108,
#11 190.6     108,  45,  97, 112, 112,  45, 100, 101, 112, 115,  32,  38,
#11 190.6      38,  32, 121,  97, 114, 110,  32, 103, 101, 110, 101, 114,
#11 190.6      97, 116, 101,  45, 116, 121, 112, 101, 115,  10, 112,  97,
#11 190.6     116,  99, 104,  45,
#11 190.6     ... 2090 more items
#11 190.6   ],
#11 190.6   stderr: Buffer(305) [Uint8Array] [
#11 190.6      78, 111,  32, 112,  97, 116,  99, 104,  32, 102, 105, 108,
#11 190.6     101, 115,  32, 102, 111, 117, 110, 100,  10,  69, 114, 114,
#11 190.6     111, 114,  32, 111,  99,  99, 117, 114, 101, 100,  58,  32,
#11 190.6      32,  78, 111,  32, 102, 105, 108, 101, 115,  32, 112,  97,
#11 190.6     115, 115, 101, 100,  46,  10,  96,  46,  47, 115, 114,  99,
#11 190.6      47, 108, 111, 103, 105,  99,  47,  99, 111, 110, 116, 114,
#11 190.6      97,  99, 116, 115,  47,  97, 114, 116, 105, 102,  97,  99,
#11 190.6     116, 115,  47,  42,  46, 106, 115, 111, 110,  96,  32, 100,
#11 190.6     105, 100, 110,  39,
#11 190.6     ... 205 more items
#11 190.6   ]
#11 190.6 }
#11 190.6 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
ERROR: Service 'safe-react' failed to build : Build failed
@katspaugh
Copy link
Member

cc @DaniSomoza

@DaniSomoza
Copy link
Contributor

Hi @daniel-cao-tron Sorry for the delay! I merged the fix into dev branch!

Let me know if you have any doubt!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants