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

Dockerfile #8988

Open
1 task done
imaginateit opened this issue Dec 15, 2024 · 0 comments
Open
1 task done

Dockerfile #8988

imaginateit opened this issue Dec 15, 2024 · 0 comments

Comments

@imaginateit
Copy link

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Docker

Which version of AutoGPT are you using?

Latest Release

What LLM Provider do you use?

Other (detail in issue)

Which area covers your issue best?

Installation and setup

What commit or version are you using?

2121ffd

Describe your issue.

  1. Run the following command:

    docker compose up -d
    

    This command will start all the necessary backend services defined in the docker-compose.yml file in detached mode.

    This fails with:
    => CANCELED [market-migrations builder 11/11] RUN poetry config virtualenvs.create false && poetry run prisma generate 33.8s
    => CACHED [migrate builder 3/11] RUN apt-get update && apt-get install -y build-essential curl ffmpeg wget libcurl4-gnutls-dev libexpat1-dev libpq5 gettext libz-d 0.0s
    => CACHED [migrate builder 4/11] RUN pip3 install --upgrade pip setuptools 0.0s
    => CACHED [migrate builder 5/11] RUN pip3 install poetry 0.0s
    => CACHED [migrate builder 6/11] COPY autogpt_platform/autogpt_libs /app/autogpt_platform/autogpt_libs 0.0s
    => CACHED [migrate builder 7/11] COPY autogpt_platform/backend/poetry.lock autogpt_platform/backend/pyproject.toml /app/autogpt_platform/backend/ 0.0s
    => CACHED [migrate builder 8/11] WORKDIR /app/autogpt_platform/backend 0.0s
    => CACHED [migrate builder 9/11] RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi 0.0s
    => CACHED [migrate builder 10/11] COPY autogpt_platform/backend/schema.prisma ./ 0.0s
    => ERROR [migrate builder 11/11] RUN poetry config virtualenvs.create false && poetry run prisma generate 33.7s


[migrate builder 11/11] RUN poetry config virtualenvs.create false && poetry run prisma generate:
1.120 Skipping virtualenv creation, as specified in config file.
1.834 Installing Prisma CLI
2.444 * Install prebuilt node (23.4.0) .Incomplete read while reading from https://nodejs.org/download/release/v23.4.0/node-v23.4.0-linux-x64.tar.gz - IncompleteRead(50298880 bytes read, 4946922 more expected)
22.91 Incomplete read while reading from https://nodejs.org/download/release/v23.4.0/node-v23.4.0-linux-x64.tar.gz - IncompleteRead(48249370 bytes read, 6996432 more expected)
33.68 Incomplete read while reading from https://nodejs.org/download/release/v23.4.0/node-v23.4.0-linux-x64.tar.gz - IncompleteRead(52488729 bytes read, 2757073 more expected)
33.68
33.68 Traceback (most recent call last):
33.68 File "", line 198, in _run_module_as_main
33.68 File "", line 88, in _run_code
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 1548, in
33.68 main()
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 1130, in main
33.68 create_environment(env_dir, args)
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 1006, in create_environment
33.68 install_node(env_dir, src_dir, args)
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 763, in install_node
33.68 install_node_wrapped(env_dir, src_dir, args)
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 786, in install_node_wrapped
33.68 download_node_src(node_url, src_dir, args)
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 618, in download_node_src
33.68 dl_contents = _download_node_file(node_url)
33.68 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 610, in _download_node_file
33.68 raise e
33.68 File "/usr/local/lib/python3.11/site-packages/nodeenv.py", line 602, in _download_node_file
33.68 return io.BytesIO(urlopen(node_url).read())
33.68 ^^^^^^^^^^^^^^^^^^^^^^^^
33.68 File "/usr/local/lib/python3.11/http/client.py", line 489, in read
33.68 s = self._safe_read(self.length)
33.68 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33.68 File "/usr/local/lib/python3.11/http/client.py", line 640, in _safe_read
33.68 raise IncompleteRead(data, amt-len(data))
33.68 http.client.IncompleteRead: IncompleteRead(52488729 bytes read, 2757073 more expected)
33.69 nodeenv installation failed; You may want to try installing nodejs-bin as it is more reliable.
33.69 Traceback (most recent call last):
33.69 File "/usr/local/bin/prisma", line 8, in
33.69 sys.exit(main())
33.69 ^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/cli.py", line 37, in main
33.69 sys.exit(prisma.run(args[1:]))
33.69 ^^^^^^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/prisma.py", line 35, in run
33.69 entrypoint = ensure_cached().entrypoint
33.69 ^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/prisma.py", line 88, in ensure_cached
33.69 proc = npm.run(
33.69 ^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/_proxy.py", line 19, in getattr
33.69 return getattr(self.get_proxied(), attr)
33.69 ^^^^^^^^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/_proxy.py", line 38, in get_proxied
33.69 self.__proxied = proxied = self.load()
33.69 ^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/_node.py", line 406, in load
33.69 return resolve(self.target)
33.69 ^^^^^^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/_node.py", line 281, in resolve
33.69 return NodeBinaryStrategy.resolve(target)
33.69 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/_node.py", line 158, in resolve
33.69 return NodeBinaryStrategy.from_nodeenv(target)
33.69 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/_node.py", line 188, in from_nodeenv
33.69 raise exc
33.69 File "/usr/local/lib/python3.11/site-packages/prisma/cli/_node.py", line 171, in from_nodeenv
33.69 subprocess.run(
33.69 File "/usr/local/lib/python3.11/subprocess.py", line 571, in run
33.69 raise CalledProcessError(retcode, process.args,
33.69 subprocess.CalledProcessError: Command '['/usr/local/bin/python3.11', '-m', 'nodeenv', '/root/.cache/prisma-python/nodeenv']' returned non-zero exit status 1.


failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry run prisma generate" did not complete successfully: exit code: 1

Upload Activity Log Content

NA

Upload Error Log Content

NA

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

No branches or pull requests

1 participant