plaid / pattern

An example end-to-end Plaid integration to create items and fetch transaction data
MIT License
450 stars 224 forks source link

Ngrok Error in first time make start #311

Open ttezy opened 3 weeks ago

ttezy commented 3 weeks ago

Hi, I started the docker for the first time and it got an error while compiling. I have added API Keys and the Ngrok authentoken. The error messages are below:

Pulling images from Docker Hub (this may take a few minutes)
docker compose pull
WARN[0000] /Users/yangzhao/Desktop/Projects/TrackUrMoney/pattern/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Pulling 8/8
 ✔ ngrok Pulled                                                                                                                                    0.7s 
 ✔ db Pulled                                                                                                                                       0.7s 
 ✔ server Pulled                                                                                                                                   3.5s 
   ✔ caa0286865d1 Download complete                                                                                                                0.4s 
   ✔ df9468940354 Download complete                                                                                                                0.3s 
   ✔ 67c28fb6d528 Download complete                                                                                                                0.4s 
   ✔ bec49c31ca30 Download complete                                                                                                                0.8s 
 ✔ client Pulled                                                                                                                                   0.7s 
Starting Docker services
docker compose up --build --detach
WARN[0000] /Users/yangzhao/Desktop/Projects/TrackUrMoney/pattern/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Building 2.7s (28/33)                                                                                                          docker:desktop-linux
 => [server internal] load build definition from Dockerfile                                                                                        0.0s
 => => transferring dockerfile: 267B                                                                                                               0.0s
 => [client internal] load metadata for docker.io/library/node:10.15.3-alpine                                                                      0.6s
 => [server auth] library/node:pull token for registry-1.docker.io                                                                                 0.0s
 => [server internal] load .dockerignore                                                                                                           0.0s
 => => transferring context: 234B                                                                                                                  0.0s
 => [client 1/7] FROM docker.io/library/node:10.15.3-alpine@sha256:aa28f3b6b4087b3f289bebaca8d3fb82b93137ae739aa67df3a04892d521958e                0.1s
 => => resolve docker.io/library/node:10.15.3-alpine@sha256:aa28f3b6b4087b3f289bebaca8d3fb82b93137ae739aa67df3a04892d521958e                       0.0s
 => [server internal] load build context                                                                                                           0.0s
 => => transferring context: 2.64kB                                                                                                                0.0s
 => CACHED [server 2/6] COPY [package.json, /opt/server/]                                                                                          0.0s
 => CACHED [server 3/6] COPY [package-lock.json, /opt/server/]                                                                                     0.0s
 => CACHED [server 4/6] WORKDIR /opt/server                                                                                                        0.0s
 => CACHED [server 5/6] RUN npm ci                                                                                                                 0.0s
 => CACHED [server 6/6] COPY [./, /opt/server/]                                                                                                    0.0s
 => [server] exporting to image                                                                                                                    0.1s
 => => exporting layers                                                                                                                            0.0s
 => => exporting manifest sha256:9ef869d5ecaccf6d1bbd1497b61e73cdaf4a9811ff7b7e104abb9e97ceef83ff                                                  0.0s
 => => exporting config sha256:24254d67aaa7516fe5a60f0ef48b72262076ea4a8504746895a2168d64614e4b                                                    0.0s
 => => exporting attestation manifest sha256:284b83e87d8e119b0c7fac13826b4c0c956591bdade8bcdd6ed18933259f6b65                                      0.0s
 => => exporting manifest list sha256:228d98f4151b55a85ff457e792f78bdb2267893c4bb71d34be3077fc51b5992f                                             0.0s
 => => naming to docker.io/plaidinc/pattern-server:1.0.7                                                                                           0.0s
 => => unpacking to docker.io/plaidinc/pattern-server:1.0.7                                                                                        0.0s
 => [server] resolving provenance for metadata file                                                                                                0.0s
 => [client internal] load build definition from Dockerfile                                                                                        0.0s
 => => transferring dockerfile: 313B                                                                                                               0.0s
 => [ngrok internal] load build definition from Dockerfile                                                                                         0.0s
 => => transferring dockerfile: 1.38kB                                                                                                             0.0s
 => [ngrok internal] load metadata for docker.io/library/alpine:3.9                                                                                0.4s
 => [ngrok auth] library/alpine:pull token for registry-1.docker.io                                                                                0.0s
 => [client internal] load .dockerignore                                                                                                           0.0s
 => => transferring context: 234B                                                                                                                  0.0s
 => [client internal] load build context                                                                                                           0.0s
 => => transferring context: 4.38kB                                                                                                                0.0s
 => CACHED [client 2/7] COPY [package.json, /opt/client/]                                                                                          0.0s
 => CACHED [client 3/7] COPY [package-lock.json, /opt/client/]                                                                                     0.0s
 => CACHED [client 4/7] WORKDIR /opt/client                                                                                                        0.0s
 => CANCELED [client 5/7] RUN npm ci                                                                                                               1.4s
 => [ngrok internal] load .dockerignore                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                    0.0s
 => [ngrok 1/6] FROM docker.io/library/alpine:3.9@sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011                          0.0s
 => => resolve docker.io/library/alpine:3.9@sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011                                0.0s
 => [ngrok internal] load build context                                                                                                            0.0s
 => => transferring context: 138B                                                                                                                  0.0s
 => CACHED [ngrok 2/6] RUN set -x &&     apk add --no-cache -t .deps ca-certificates &&     wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alp  0.0s
 => ERROR [ngrok 3/6] RUN set -x     && case amd64 in         "amd64") NGROK_URL="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd6  1.1s
------
 > [ngrok 3/6] RUN set -x     && case amd64 in         "amd64") NGROK_URL="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz" ;;         "arm64") NGROK_URL="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz" ;;         *) echo "unsupported architecture: amd64" && exit 1 ;;     esac     && apk add --no-cache curl     && curl -Lo /ngrok.tgz ${NGROK_URL}     && tar xvzf /ngrok.tgz -C /bin     && rm -f /ngrok.tgz     && adduser -h /home/ngrok -D -u 6737 ngrok:
0.120 + NGROK_URL=https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz
0.120 + apk add --no-cache curl
0.123 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
0.358 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
0.539 (1/5) Installing ca-certificates (20191127-r2)
0.643 (2/5) Installing nghttp2-libs (1.35.1-r2)
0.686 (3/5) Installing libssh2 (1.9.0-r1)
0.708 (4/5) Installing libcurl (7.64.0-r5)
0.754 (5/5) Installing curl (7.64.0-r5)
0.782 Executing busybox-1.29.3-r10.trigger
0.790 Executing ca-certificates-20191127-r2.trigger
0.847 OK: 11 MiB in 20 packages
0.877 + curl -Lo /ngrok.tgz https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz
0.884   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.886                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0.983 curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
------
failed to solve: process "/bin/sh -c set -x     && case ${TARGETARCH} in         \"amd64\") NGROK_URL=\"https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz\" ;;         \"arm64\") NGROK_URL=\"https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz\" ;;         *) echo \"unsupported architecture: ${TARGETARCH}\" && exit 1 ;;     esac     && apk add --no-cache curl     && curl -Lo /ngrok.tgz ${NGROK_URL}     && tar xvzf /ngrok.tgz -C /bin     && rm -f /ngrok.tgz     && adduser -h /home/ngrok -D -u 6737 ngrok" did not complete successfully: exit code: 35
make: *** [start] Error 17
phoenixy1 commented 2 weeks ago

@ttezy can you try downloading that file using curl directly from the command line:

curl https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz --output ngrok-test.tgz

If you get the same error there, there may be some issue with the network your machine is behind that is blocking this command.