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

[Self-Host] Unable to build the docker image #948

Open
saidharanidhar opened this issue Dec 8, 2024 · 2 comments
Open

[Self-Host] Unable to build the docker image #948

saidharanidhar opened this issue Dec 8, 2024 · 2 comments

Comments

@saidharanidhar
Copy link

Describe the Issue
Followed self host instructions. Not able to progress beyond docker-compose build step.

To Reproduce
Steps to reproduce the issue:

  1. Clone the repo and checkout to the main branch.
  2. Follow self hosting instructions.

Expected Behavior
It should pass the build.

Screenshots

➜  firecrawl git:(main) docker-compose build --no-cache
WARN[0000] The "LOGTAIL_KEY" variable is not set. Defaulting to a blank string.
WARN[0000] The "OPENAI_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "LOGTAIL_KEY" variable is not set. Defaulting to a blank string.
WARN[0000] The "OPENAI_BASE_URL" variable is not set. Defaulting to a blank string.
[+] Building 85.8s (25/32)                                                                                                                                                docker:desktop-linuxx
 => [playwright-service internal] load build definition from Dockerfile                                                                                                                   0.0ss
 => => transferring dockerfile: 1.20kB                                                                                                                                                    0.0ss
 => [playwright-service internal] load .dockerignore                                                                                                                                      0.0ss
 => => transferring context: 2B                                                                                                                                                           0.0ss
 => [playwright-service internal] load metadata for docker.io/library/python:3.11-slim                                                                                                    1.9ss
 => CACHED [playwright-service 1/6] FROM docker.io/library/python:3.11-slim@sha256:370c586a6ffc8c619e6d652f81c094b34b14b8f2fb9251f092de23f16e299b78                                       0.0ss
 => [playwright-service internal] load build context                                                                                                                                      0.0ss
 => => transferring context: 538B                                                                                                                                                         0.0ss
 => [playwright-service 2/6] RUN apt-get update && apt-get install -y --no-install-recommends     gcc     libstdc++6                                                                      7.5ss
 => [playwright-service 3/6] WORKDIR /app                                                                                                                                                 0.0ss
 => [playwright-service 4/6] COPY requirements.txt ./                                                                                                                                     0.0ss
 => [playwright-service 5/6] RUN pip install --no-cache-dir --upgrade -r requirements.txt &&     pip uninstall -y py &&     playwright install chromium && playwright install-deps chro  56.1ss
 => [playwright-service 6/6] COPY . ./                                                                                                                                                    0.0s
 => [playwright-service] exporting to image                                                                                                                                               3.2s
 => => exporting layers                                                                                                                                                                   3.2s
 => => writing image sha256:40f4dbb2b5dbe204f7bc72222263af6f1bfb3e4e0aeeec50a443f1cc43eabfbb                                                                                              0.0s
 => => naming to docker.io/library/firecrawl-playwright-service                                                                                                                           0.0s
 => [api internal] load .dockerignore                                                                                                                                                     0.0s
 => => transferring context: 110B                                                                                                                                                         0.0s
 => [api internal] load build definition from Dockerfile                                                                                                                                  0.0s
 => => transferring dockerfile: 1.58kB                                                                                                                                                    0.0s
 => [api internal] load metadata for docker.io/library/node:20-slim                                                                                                                       1.9s
 => [api internal] load metadata for docker.io/library/golang:1.19                                                                                                                        1.9s
 => CACHED [api base 1/4] FROM docker.io/library/node:20-slim@sha256:f44fa8d6d0ef15fe252459ac5d3d178362231a7948d7d07e147bae891006e2e5                                                     0.0s
 => [api internal] load build context                                                                                                                                                     0.0s
 => => transferring context: 18.66kB                                                                                                                                                      0.0s
 => CACHED [api go-base 1/3] FROM docker.io/library/golang:1.19@sha256:3025bf670b8363ec9f1b4c4f27348e6d9b7fec607c47e401e40df816853e743a                                                   0.0s
 => [api base 2/4] RUN corepack enable                                                                                                                                                    0.4s
 => [api go-base 2/3] COPY sharedLibs/go-html-to-md /app/sharedLibs/go-html-to-md                                                                                                         0.0s
 => CANCELED [api go-base 3/3] RUN cd /app/sharedLibs/go-html-to-md &&     go mod tidy &&     go build -o html-to-markdown.so -buildmode=c-shared html-to-markdown.go &&     chmod +x h  14.2s
 => [api base 3/4] COPY . /app                                                                                                                                                            0.0s
 => [api base 4/4] WORKDIR /app                                                                                                                                                           0.0s
 => CANCELED [api build 1/4] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile                                                                            13.5s
 => ERROR [api prod-deps 1/1] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile                                                                     9.4s
------
 > [api prod-deps 1/1] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile:
0.416 ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.15.0.tgz
1.174 ! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c.
1.175 ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
1.175
1.605 Lockfile is up to date, resolution step is skipped
1.668 Progress: resolved 1, reused 0, downloaded 0, added 0
1.937 Packages: +739
1.937 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2.687 Progress: resolved 739, reused 0, downloaded 82, added 79
3.683 Progress: resolved 739, reused 0, downloaded 146, added 146
4.697 Progress: resolved 739, reused 0, downloaded 226, added 221
5.726 Progress: resolved 739, reused 0, downloaded 291, added 288
7.043 Progress: resolved 739, reused 0, downloaded 317, added 305
8.147 Progress: resolved 739, reused 0, downloaded 319, added 312
8.909 Killed
------
failed to solve: process "/bin/sh -c pnpm install --prod --frozen-lockfile" did not complete successfully: exit code: 137

Environment (please complete the following information):

  • OS: macOS (m1)
  • Firecrawl Version: checked on main branch and v1.0.0 tag.
  • Node.js Version: Don't know.
  • Docker Version (if applicable): Docker version 24.0.7, build afdd53b
  • Database Type and Version: Don't know.

Configuration
Defaults.

@Eternity714
Copy link

i think i fixed it after i changed the npm registry

@saidharanidhar
Copy link
Author

I pulled the latest code from main and it's still failing. The same error. Anything I have to change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants