ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
10.77k stars 948 forks source link

Docker compose up -d fails with "There appears to be trouble with your network connection" error despite stable internet connection on Windows with WSL #149

Closed AliasHolmes closed 1 month ago

AliasHolmes commented 1 month ago

Description I'm experiencing an issue when running docker compose up -d in my project on Windows with WSL (Windows Subsystem for Linux). Despite having a stable internet connection, the build process fails with the following error message: => => # info There appears to be trouble with your network connection. Retrying...

This error is repeated multiple times, and the build ultimately fails. Output Here is the full output of the command: [+] Building 0.0s (0/0) docker:default 2024/05/28 23:42:52 http2: server: error reading preface from client //./pipe/docker_engine: file has already been close[+] Building 159.3s (8/10) docker:default => [perplexica-frontend internal] load build definition from app.dockerfile 0.5s => => transferring dockerfile: 308B 0.1s => [perplexica-frontend internal] load metadata for docker.io/library/node:alpine 3.2s => [perplexica-frontend auth] library/node:pull token for registry-1.docker.io 0.0s => [perplexica-frontend internal] load .dockerignore 0.3s => => transferring context: 55B 0.0s => [perplexica-frontend 1/5] FROM docker.io/library/node:alpine@sha256:e07a6a6c965e052163ece23eda2e4505c44b46dcf 0.0s => [perplexica-frontend internal] load build context 0.4s => => transferring context: 1.79kB 0.0s => CACHED [perplexica-frontend 2/5] WORKDIR /home/perplexica 0.0s => CACHED [perplexica-frontend 3/5] COPY ui /home/perplexica/ 0.0s => [perplexica-frontend 4/5] RUN yarn install 154.6s => => # instead. => => # (Use node --trace-deprecation ... to show where the warning was created) => => # info There appears to be trouble with your network connection. Retrying... => => # info There appears to be trouble with your network connection. Retrying... => => # info There appears to be trouble with your network connection. Retrying... => => # info There appears to be trouble with your network connection. Retrying...

Environment Docker version: latest (Docker Desktop 4.15.0 (85629)) Docker Compose version: latest (Docker Compose 2.12.2) Operating System: Windows 10/11 with WSL (Windows Subsystem for Linux) WSL version: 2 Steps to reproduce Run docker compose up -d in the project directory Observe the error message and build failure I'd appreciate any help in resolving this issue. Thank you

ItzCrazyKns commented 1 month ago

Are you entering the command inside a WSL container? this generally occurs when the packages are too large to install/computer is slow or if there are network issues. I would recommend you to run the command directly on the host computer rather than in WSL.