langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Unable to run Docker

Open afonsolopez opened this issue 1 year ago • 2 comments

Describe the bug Docker version it's not working with older versions it was working well.

Browser and Version

  • Ubuntu [23.04]
  • Version [v0.1.6]

To Reproduce Steps to reproduce the behavior:

  1. Clone from repo
  2. Run docker compose up -d
  3. Log
[+] Building 157.0s (27/27) FINISHED                                                                                
 => [backend internal] load build definition from dev.Dockerfile                                               0.0s
 => => transferring dockerfile: 671B                                                                           0.0s
 => [backend internal] load .dockerignore                                                                      0.0s
 => => transferring context: 2B                                                                                0.0s
 => [frontend internal] load build definition from dev.Dockerfile                                              0.0s
 => => transferring dockerfile: 671B                                                                           0.0s
 => [frontend internal] load .dockerignore                                                                     0.0s
 => => transferring context: 2B                                                                                0.0s
 => [frontend internal] load metadata for docker.io/library/node:19-bullseye-slim                              0.6s
 => [backend internal] load metadata for docker.io/library/python:3.10-slim                                    0.4s
 => [backend 1/7] FROM docker.io/library/python:3.10-slim@sha256:7dc5b4e948acd18c1633b0e593ad0224298646612ce7  7.0s
 => => resolve docker.io/library/python:3.10-slim@sha256:7dc5b4e948acd18c1633b0e593ad0224298646612ce7d0b5ac6d  0.0s
 => => sha256:7dc5b4e948acd18c1633b0e593ad0224298646612ce7d0b5ac6d4e17616d7e4b 1.65kB / 1.65kB                 0.0s
 => => sha256:c11490fd02e0cda47e577d2aca36fa6509c71308a675d18a2e881864f8798736 1.37kB / 1.37kB                 0.0s
 => => sha256:19272dc88a8ee64ca08598c369a7d97aa5b0f1441a50fee4956af31c27ace9eb 6.92kB / 6.92kB                 0.0s
 => => sha256:5b5fe70539cd6989aa19f25826309f9715a9489cf1c057982d6a84c1ad8975c7 29.12MB / 29.12MB               1.6s
 => => sha256:f4b0e4004dc04711a8993bf16c12de46a97fb4451c82ef440984fde7c822e4ea 3.50MB / 3.50MB                 0.5s
 => => sha256:c5424f0ac885ec615efbbae35449ca925b901ca2b580337cca572704cdf1522b 17.43MB / 17.43MB               0.8s
 => => sha256:9d21fe1624ec14a17704060db0113fad2195119f1d4a9e7a8a3d708ba5a93c5d 244B / 244B                     0.6s
 => => sha256:de0194aa1c2187a0cf3ac9af8347bf734597fc253d3de1e0fbecfea55b57cc54 3.37MB / 3.37MB                 1.0s
 => => extracting sha256:5b5fe70539cd6989aa19f25826309f9715a9489cf1c057982d6a84c1ad8975c7                      2.5s
 => => extracting sha256:f4b0e4004dc04711a8993bf16c12de46a97fb4451c82ef440984fde7c822e4ea                      0.7s
 => => extracting sha256:c5424f0ac885ec615efbbae35449ca925b901ca2b580337cca572704cdf1522b                      1.3s
 => => extracting sha256:9d21fe1624ec14a17704060db0113fad2195119f1d4a9e7a8a3d708ba5a93c5d                      0.0s
 => => extracting sha256:de0194aa1c2187a0cf3ac9af8347bf734597fc253d3de1e0fbecfea55b57cc54                      0.3s
 => [backend internal] load build context                                                                      1.0s
 => => transferring context: 54.02MB                                                                           1.0s
 => [frontend base 1/5] FROM docker.io/library/node:19-bullseye-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd  10.4s
 => => resolve docker.io/library/node:19-bullseye-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f  0.0s
 => => sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f3b97aa054500b0534 1.21kB / 1.21kB                 0.0s
 => => sha256:63b5ca0f90dbaf64465a83d46276e133eab30410f642808d158bf98928811999 1.37kB / 1.37kB                 0.0s
 => => sha256:adbc02574b521bb652d771c8ac0282c724b9fe90c001f3bab0825c32092c9036 6.84kB / 6.84kB                 0.0s
 => => sha256:f03b40093957615593f2ed142961afb6b540507e0b47e3f7626ba5e02efbbbf1 31.40MB / 31.40MB               1.6s
 => => sha256:0bfad7312c25e414fc3d0e3640a77bd4b5c74d2118595670999afef9758cb49b 4.19kB / 4.19kB                 0.9s
 => => sha256:56db04c463e993ac037103947cd590d52fcddcb17ad04285a0ca4c3510c0738c 46.62MB / 46.62MB               1.8s
 => => sha256:477c7ebfb8500396b86c69952acb17b909a0a63da41e03dd4046e2c809722c6e 2.76MB / 2.76MB                 1.6s
 => => sha256:8bb4aa3e51be63d4a2e5bd30ab9cd478a916ed3c5c0212a44b96fd743e0e0f2f 450B / 450B                     1.7s
 => => extracting sha256:f03b40093957615593f2ed142961afb6b540507e0b47e3f7626ba5e02efbbbf1                      3.1s
 => => extracting sha256:0bfad7312c25e414fc3d0e3640a77bd4b5c74d2118595670999afef9758cb49b                      0.0s
 => => extracting sha256:56db04c463e993ac037103947cd590d52fcddcb17ad04285a0ca4c3510c0738c                      5.0s
 => => extracting sha256:477c7ebfb8500396b86c69952acb17b909a0a63da41e03dd4046e2c809722c6e                      0.2s
 => => extracting sha256:8bb4aa3e51be63d4a2e5bd30ab9cd478a916ed3c5c0212a44b96fd743e0e0f2f                      0.0s
 => [frontend internal] load build context                                                                     0.2s
 => => transferring context: 1.07MB                                                                            0.2s
 => [backend 2/7] WORKDIR /app                                                                                 0.0s
 => [backend 3/7] RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-a  76.2s
 => [frontend base 2/5] RUN mkdir -p /home/node/app                                                            0.3s
 => [frontend base 3/5] RUN chown -R node:node /home/node && chmod -R 770 /home/node                           0.4s
 => [frontend base 4/5] RUN apt-get update && apt-get install -y jq                                            5.7s
 => [frontend base 5/5] WORKDIR /home/node/app                                                                 0.0s
 => [frontend builder-client 1/6] RUN echo "BACKEND_URL: http://backend:7860"                                  0.2s
 => [frontend builder-client 2/6] WORKDIR /home/node/app                                                       0.0s
 => [frontend builder-client 3/6] COPY --chown=node:node . ./                                                  0.1s
 => [frontend builder-client 4/6] COPY ./set_proxy.sh .                                                        0.0s
 => [frontend builder-client 5/6] RUN chmod +x set_proxy.sh &&     cat set_proxy.sh | tr -d '\r' > set_proxy_  0.2s
 => [frontend builder-client 6/6] RUN npm install --loglevel warn                                             87.9s
 => [backend 4/7] RUN curl -sSL https://install.python-poetry.org | python3 -                                 31.2s
 => [frontend] exporting to image                                                                             27.3s
 => => exporting layers                                                                                       27.3s
 => => writing image sha256:c1ea9a59aa6ae10a49d3e192b3b3d9ab8699b645247af0ef97911d72ff974999                   0.0s
 => => naming to docker.io/library/langflow-frontend                                                           0.0s
 => [backend 5/7] COPY poetry.lock pyproject.toml ./                                                           0.1s
 => [backend 6/7] COPY ./ ./                                                                                   0.5s
 => ERROR [backend 7/7] RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-a  41.2s
------
 > [backend 7/7] RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi:
#0 3.487 Skipping virtualenv creation, as specified in config file.
#0 3.774 Installing dependencies from lock file
#0 8.126 
#0 8.126 Package operations: 229 installs, 1 update, 0 removals
#0 8.126 
#0 8.126   • Installing wrapt (1.15.0)
#0 8.831   • Installing certifi (2023.5.7)
#0 8.831   • Installing charset-normalizer (3.1.0)
#0 8.831   • Installing deprecated (1.2.14)
#0 8.831   • Installing frozenlist (1.3.3)
#0 8.831   • Installing idna (3.4)
#0 9.385   • Installing mdurl (0.1.2)
#0 9.548   • Installing multidict (6.0.4)
#0 9.580   • Installing pyasn1 (0.5.0)
#0 9.630   • Updating setuptools (65.5.1 -> 68.0.0)
#0 9.869   • Installing six (1.16.0)
#0 9.964   • Installing urllib3 (1.26.16)
#0 14.41   • Installing aiosignal (1.3.1)
#0 14.41   • Installing async-timeout (4.0.2)
#0 14.41   • Installing attrs (23.1.0)
#0 14.41   • Installing ecdsa (0.18.0)
#0 14.41   • Installing exceptiongroup (1.1.1)
#0 14.49   • Installing markdown-it-py (3.0.0)
#0 14.53   • Installing opentelemetry-api (1.16.0)
#0 14.53   • Installing opentelemetry-semantic-conventions (0.37b0)
#0 14.68   • Installing packaging (23.1)
#0 14.68   • Installing protobuf (3.20.3)
#0 14.84   • Installing pygments (2.15.1)
#0 14.87   • Installing requests (2.31.0)
#0 14.88   • Installing rsa (4.9)
#0 14.94   • Installing sniffio (1.3.0)
#0 15.03   • Installing typing-extensions (4.5.0)
#0 15.08   • Installing websocket-client (1.6.0)
#0 15.08   • Installing yarl (1.9.2)
#0 15.11   • Installing zipp (3.15.0)
#0 15.43   • Installing aiohttp (3.8.4)
#0 15.43   • Installing anyio (3.7.0)
#0 15.43   • Installing backoff (2.2.1)
#0 15.43   • Installing asgiref (3.7.2)
#0 15.43   • Installing docker (6.1.3)
#0 15.62   • Installing filelock (3.12.2)
#0 15.62   • Installing googleapis-common-protos (1.59.1)
#0 15.66   • Installing grpcio (1.47.5)
#0 15.72   • Installing importlib-metadata (4.13.0)
#0 15.82   • Installing markupsafe (2.1.3)
#0 15.89   • Installing marshmallow (3.19.0)
#0 16.05   • Installing mpmath (1.3.0)
#0 16.13   • Installing mypy-extensions (1.0.0)
#0 16.26   • Installing opentelemetry-instrumentation (0.37b0)
#0 16.26   • Installing opentelemetry-proto (1.16.0)
#0 16.29   • Installing opentelemetry-sdk (1.16.0)
#0 16.43   • Installing opentelemetry-util-http (0.37b0)
#0 16.51   • Installing pathspec (0.11.1)
#0 16.54   • Installing pycparser (2.21)
#0 16.54   • Installing python-jose (3.3.0)
#0 16.57   • Installing pyyaml (6.0)
#0 16.67   • Installing rich (13.4.2)
#0 17.00   • Installing asttokens (2.2.1)
#0 17.00   • Installing cachetools (5.3.1)
#0 17.00   • Installing click (8.1.3)
#0 17.00   • Installing cffi (1.15.1)
#0 17.00   • Installing executing (1.2.0)
#0 17.15   • Installing greenlet (2.0.2)
#0 17.15   • Installing h11 (0.14.0)
#0 17.20   • Installing hpack (4.0.0)
#0 17.20   • Installing httptools (0.5.0)
#0 17.27   • Installing humanfriendly (10.0)
#0 17.33   • Installing hyperframe (6.0.1)
#0 17.36   • Installing jina-hubble-sdk (0.38.0)
#0 17.45   • Installing jinja2 (3.1.2)
#0 17.45   • Installing marshmallow-enum (1.5.1)
#0 17.45   • Installing networkx (3.1)
#0 17.54   • Installing numpy (1.25.0)
#0 17.57   • Installing opentelemetry-exporter-otlp-proto-grpc (1.16.0)
#0 17.68   • Installing opentelemetry-exporter-otlp-proto-http (1.16.0)
#0 17.68   • Installing opentelemetry-instrumentation-asgi (0.37b0)
#0 17.73   • Installing parso (0.8.3)
#0 17.82   • Installing platformdirs (3.7.0)
#0 17.86   • Installing prometheus-client (0.17.0)
#0 17.90   • Installing ptyprocess (0.7.0)
#0 17.91   • Installing pure-eval (0.2.2)
#0 17.97   • Installing pyasn1-modules (0.3.0)
#0 17.99   • Installing pydantic (1.10.9)
#0 17.99   • Installing pyparsing (3.1.0)
#0 18.11   • Installing python-dateutil (2.8.2)
#0 18.30   • Installing python-dotenv (1.0.0)
#0 18.36   • Installing starlette (0.27.0)
#0 18.46   • Installing sympy (1.12)
#0 18.54   • Installing tenacity (8.2.2)
#0 18.65   • Installing tqdm (4.65.0)
#0 18.67   • Installing traitlets (5.9.0)
#0 18.77   • Installing typing-inspect (0.9.0)
#0 18.83   • Installing uvloop (0.17.0)
#0 18.85   • Installing watchfiles (0.19.0)
#0 18.88   • Installing wcwidth (0.2.6)
#0 18.94   • Installing websockets (11.0.3)
#0 20.28   • Installing aiofiles (23.1.0)
#0 20.29   • Installing aiostream (0.4.5)
#0 20.29   • Installing coloredlogs (15.0.1)
#0 20.29   • Installing backcall (0.2.0)
#0 20.29   • Installing cryptography (41.0.1)
#0 20.40   • Installing dataclasses-json (0.5.8)
#0 20.41   • Installing decorator (5.1.1)
#0 20.42   • Installing docarray (0.21.0)
#0 20.43   • Installing et-xmlfile (1.1.0)
#0 20.46   • Installing fastapi (0.97.0)
#0 20.51   • Installing flatbuffers (23.5.26)
#0 20.53   • Installing google-auth (2.20.0)
#0 20.56   • Installing grpcio-health-checking (1.47.5)
#0 20.62   • Installing grpcio-reflection (1.47.5)
#0 20.67   • Installing h2 (4.1.0)
#0 20.68   • Installing httpcore (0.16.3)
#0 20.73   • Installing httplib2 (0.22.0)
#0 20.78   • Installing huggingface-hub (0.13.4)
#0 20.86   • Installing iniconfig (2.0.0)
#0 20.87   • Installing jcloud (0.2.12)
#0 20.94   • Installing jedi (0.18.2)
#0 20.98   • Installing joblib (1.2.0)
#0 21.10   • Installing jupyter-core (5.3.1)
#0 21.23   • Installing langchainplus-sdk (0.0.16)
#0 21.24   • Installing lxml (4.9.2)
#0 21.32   • Installing lz4 (4.3.2)
#0 21.61   • Installing matplotlib-inline (0.1.6)
#0 21.74   • Installing monotonic (1.6)
#0 21.87   • Installing numexpr (2.8.4)
#0 22.06   • Installing olefile (0.46)
#0 22.19   • Installing openapi-schema-pydantic (1.2.4)
#0 22.44   • Installing opentelemetry-exporter-otlp (1.16.0)
#0 22.52   • Installing opentelemetry-exporter-prometheus (1.12.0rc1)
#0 22.65   • Installing opentelemetry-instrumentation-aiohttp-client (0.37b0)
#0 22.75   • Installing opentelemetry-instrumentation-fastapi (0.37b0)
#0 22.84   • Installing opentelemetry-instrumentation-grpc (0.37b0)
#0 23.12   • Installing pexpect (4.8.0)
#0 23.15   • Installing pickleshare (0.7.5)
#0 23.29   • Installing pillow (9.5.0)
#0 23.31   • Installing pluggy (1.2.0)
#0 23.42   • Installing prompt-toolkit (3.0.38)
#0 23.90   • Installing python-multipart (0.0.6)
#0 24.06   • Installing pytz (2023.3)
#0 24.30   • Installing pyzmq (25.1.0)
#0 24.85   • Installing regex (2023.6.3)
#0 25.06   • Installing rfc3986 (1.5.0)
#0 25.12   • Installing scipy (1.10.1)
#0 25.20   • Installing soupsieve (2.4.1)
#0 25.31   • Installing sqlalchemy (1.4.41)
#0 26.13   • Installing stack-data (0.6.2)
#0 26.25   • Installing threadpoolctl (3.1.0)
#0 26.62   • Installing tokenizers (0.13.3)
#0 27.38   • Installing tomli (2.0.1)
#0 27.44   • Installing torch (2.0.1)
#0 27.46   • Installing tornado (6.3.2)
#0 27.73   • Installing uvicorn (0.22.0)
#0 27.95   • Installing xlsxwriter (3.1.2)
#0 28.15   • Installing zstandard (0.21.0)
#0 41.15 Killed
------
failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 137

Additional context It was made on a fresh Ubuntu install.

afonsolopez avatar Jun 21 '23 15:06 afonsolopez

Same issue here. Ubuntu 22.10

vexersa avatar Jul 04 '23 14:07 vexersa

This is a resource is resource related I'm sure. Increasing RAM worked for me, but now there is a separate issue where the port in the docker compose files is not being respected.

vexersa avatar Jul 05 '23 06:07 vexersa

Any solution to this yet?

Smartking1 avatar Jul 09 '23 14:07 Smartking1

@vexersa how do I increase the RAM

Smartking1 avatar Jul 09 '23 14:07 Smartking1

@Smartking1

https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3

deploy:
  resources:
    limits:
      cpus: '0.001'
      memory: "RAMAMOUNT"M
    reservations:
      cpus: '0.0001'
      memory: 500M

0xDeadcell avatar Aug 11 '23 21:08 0xDeadcell

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 25 '23 21:09 stale[bot]