ItzCrazyKns / Perplexica

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

ERROR [perplexica-backend 11/12] RUN yarn install #335

Open LZBNCC opened 2 months ago

LZBNCC commented 2 months ago

Describe the bug While using the recommended way of docker. I get this error. `=> ERROR [perplexica-backend 11/12] RUN yarn install 55.1s

[perplexica-backend 11/12] RUN yarn install: 0.755 yarn install v1.22.22 0.803 [1/4] Resolving packages... 0.913 [2/4] Fetching packages... 45.07 [3/4] Linking dependencies... 45.07 warning "@langchain/anthropic > zod-to-json-schema@3.23.1" has incorrect peer dependency "zod@^3.23.3". 45.08 warning " > ts-node@10.9.2" has unmet peer dependency "@types/node@*". 49.43 [4/4] Building fresh packages... 54.75 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 54.75 error /home/perplexica/node_modules/sharp: Command failed. 54.75 Exit code: 1 54.75 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) 54.75 Arguments: 54.75 Directory: /home/perplexica/node_modules/sharp 54.75 Output: 54.75 sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br 54.75 sharp: Installation error: Request timed out 54.75 sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies

failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1`

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/ItzCrazyKns/Perplexica.git
  2. Change config.toml
  3. docker compose up -d
  4. error

Expected behavior The containers should start after the successful built.

Screenshots image

Additional context Do you need a VPN to deploy this project? VPN is currently unavailable.

ItzCrazyKns commented 2 months ago

Reclone the project from Github and try building the images again

LZBNCC commented 2 months ago

Reclone the project from Github and try building the images again

Problem is the same. image

BishAU commented 1 month ago

same issue here on windows 11/wsl2

bmad-221B commented 1 month ago

This is really weird, i got it working by basically retrying again and again until it worked.

EDIT: try adding 'RUN yarn cache clean ' this in the backend dockerfile just before 'RUN yarn install --frozen-lockfile' this.