Closed kirilan closed 3 months ago
weirdly enough I tried the build on a Debian Server and got another error on the same step. This time I decided to try to only configure a GROQ key and no Ollama.
[perplexica-backend 9/10] RUN yarn install: 0.769 yarn install v1.22.19 0.819 [1/4] Resolving packages... 0.915 [2/4] Fetching packages... 22.34 [3/4] Linking dependencies... 22.34 warning " > ts-node@10.9.2" has unmet peer dependency "@types/node@*". 24.86 [4/4] Building fresh packages... 30.27 error /home/perplexica/node_modules/sharp: Command failed. 30.27 Exit code: 1 30.27 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) 30.27 Arguments: 30.27 Directory: /home/perplexica/node_modules/sharp 30.27 Output: 30.27 sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br 30.27 sharp: Installation error: Request timed out 30.27 sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies 30.27 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1 kiril@deb01:~/Perplexica$
Fixed in https://github.com/ItzCrazyKns/Perplexica/commit/c852bee8ed99092d7956b913bdd611ddb8eca300. Re-clone Perplexica and try building again
weirdly enough I still get the same error. I definitely see the updated page.tsx is getting downloaded but the error is still here
[perplexica-backend 9/10] RUN yarn install: 0.874 yarn install v1.22.19 0.916 [1/4] Resolving packages... 1.024 [2/4] Fetching packages... 21.58 [3/4] Linking dependencies... 21.58 warning " > ts-node@10.9.2" has unmet peer dependency "@types/node@*". 23.77 [4/4] Building fresh packages... 29.26 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 29.26 error /home/perplexica/node_modules/sharp: Command failed. 29.26 Exit code: 1 29.26 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) 29.26 Arguments: 29.26 Directory: /home/perplexica/node_modules/sharp 29.26 Output: 29.26 sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br 29.26 sharp: Installation error: Request timed out 29.26 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 kiril@deb01:~/Perplexica$ cd ui/app/ kiril@deb01:~/Perplexica/ui/app$ cat page.tsx import ChatWindow from '@/components/ChatWindow'; import { Metadata } from 'next'; import { Suspense } from 'react';
export const metadata: Metadata = { title: 'Chat - Perplexica', description: 'Chat with the internet, chat with Perplexica.', };
const Home = () => { return (
); };
export default Home; kiril@deb01:~/Perplexica/ui/app$`
actually it now builds normally on WSL, but it fails on Debian which is probably a completely separate issue.
Thank you @ItzCrazyKns
Describe the bug Build fails in Windows WSL with default settings
To Reproduce Steps to reproduce the behavior:
clone the repo in WSL (ubuntu server 22.04) edit the config and only add the default ollama URL (or localhost for that matter)
Expected behavior I expect to build and start the docker containers
Screenshots logs below
Additional context kiril@ROGM16:/mnt/c/Users/kiril/Perplexica$ docker compose up -d [+] Building 17.8s (9/9) FINISHED docker:default => [perplexica-frontend internal] load build definition from app.dockerfile 0.0s => => transferring dockerfile: 308B 0.0s => [perplexica-frontend internal] load metadata for docker.io/library/node:alpine 0.7s => [perplexica-frontend internal] load .dockerignore 0.0s => => transferring context: 55B 0.0s => [perplexica-frontend 1/5] FROM docker.io/library/node:alpine@sha256:916b42f9e83466eb17d60a441a96f5cd57033bbfe 0.0s => [perplexica-frontend internal] load build context 0.1s => => transferring context: 259.35kB 0.1s => CACHED [perplexica-frontend 2/5] WORKDIR /home/perplexica 0.0s => CACHED [perplexica-frontend 3/5] COPY ui /home/perplexica/ 0.0s => CACHED [perplexica-frontend 4/5] RUN yarn install 0.0s => ERROR [perplexica-frontend 5/5] RUN yarn build 16.9s