AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Dockerfile

Open imaginateit opened this issue 1 year ago • 8 comments

⚠️ Search for existing issues first ⚠️

  • [X] 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?

2121ffd06b26a438706bf642372cc46d81c94ddc

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

imaginateit avatar Dec 15 '24 04:12 imaginateit

I have the same issue: 5.705 Installing the current project: market (0.1.0) 5.706 5.706 Warning: The current project could not be installed: Readme path /app/autogpt_platform/market/README.md does not exist. 5.706 If you do not want to install the current project use --no-root. 5.706 If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file. 5.706 If you did intend to install the current project, you may need to set packages in your pyproject.toml file. 5.706

failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

clmarshall avatar Jan 06 '25 04:01 clmarshall

same here:

failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

tgirotto avatar Jan 06 '25 10:01 tgirotto

+1

RessMatthew avatar Jan 06 '25 12:01 RessMatthew

same here:

failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

I sloved this quetion just now,you can add “--no-root” to the “poetry install --no-interaction --no-ansi” (in autogpt_platform/market/Dockerfile and autogpt_platform/backend/Dockerfile )to solve this question

RessMatthew avatar Jan 06 '25 12:01 RessMatthew

same here: failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

I sloved this quetion just now,you can add “--no-root” to the “poetry install --no-interaction --no-ansi” (in autogpt_platform/market/Dockerfile and autogpt_platform/backend/Dockerfile )to solve this question

followed this and it worked

tgirotto avatar Jan 06 '25 14:01 tgirotto

same here: failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

I sloved this quetion just now,you can add “--no-root” to the “poetry install --no-interaction --no-ansi” (in autogpt_platform/market/Dockerfile and autogpt_platform/backend/Dockerfile )to solve this question

THANK YOU!!

clmarshall avatar Jan 06 '25 20:01 clmarshall

same here: failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi" did not complete successfully: exit code: 1

I sloved this quetion just now,you can add “--no-root” to the “poetry install --no-interaction --no-ansi” (in autogpt_platform/market/Dockerfile and autogpt_platform/backend/Dockerfile )to solve this question

Thank you!

fanqisyx avatar Jan 08 '25 16:01 fanqisyx

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Apr 19 '25 02:04 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Apr 29 '25 02:04 github-actions[bot]