Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LZBNCC opened this issue Aug 26, 2024 · 4 comments
Open

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

LZBNCC opened this issue Aug 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@LZBNCC
Copy link

LZBNCC commented Aug 26, 2024

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.

@LZBNCC LZBNCC added the bug Something isn't working label Aug 26, 2024
@ItzCrazyKns
Copy link
Owner

Reclone the project from Github and try building the images again

@LZBNCC
Copy link
Author

LZBNCC commented Aug 28, 2024

Reclone the project from Github and try building the images again

Problem is the same.
image

@BishAU
Copy link

BishAU commented Oct 14, 2024

same issue here on windows 11/wsl2

@bmad-221B
Copy link

bmad-221B commented Oct 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants
@BishAU @bmad-221B @ItzCrazyKns @LZBNCC and others