reworkd / AgentGPT

🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.
https://agentgpt.reworkd.ai
GNU General Public License v3.0
30.6k stars 9.17k forks source link

Error when using Docker Compose on Ubuntu 24.04 #1559

Open ndisalvio3 opened 4 weeks ago

ndisalvio3 commented 4 weeks ago

Please check that this issue hasn't been reported before.

Expected Behavior

It would install

Current behaviour

It fails with the following error `root@agentgpt:~/AgentGPT# ./setup.sh

up to date, audited 159 packages in 2s

37 packages are looking for funding run npm fund for details

1 low severity vulnerability

To address all issues, run: npm audit fix

Run npm audit for details.

agentgpt-cli@1.0.0 start node src/index.js

█████╗ ██████╗ ███████╗███╗ ██╗████████╗ ██████╗ ██████╗ ████████╗ ██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝██╔════╝ ██╔══██╗╚══██╔══╝ ███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║ ██║ ███╗██████╔╝ ██║
██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ██║ ██║██╔═══╝ ██║
██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ ╚██████╔╝██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝

Welcome to the AgentGPT CLI! This CLI will generate the required .env files. Copies of the generated envs will be created in ./next/.env and ./platform/.env.

Existing ./next/env file found. Validating... ? How will you be running AgentGPT? 🐋 Docker-compose (Recommended) node:events:495 throw er; // Unhandled 'error' event ^

Error: spawn docker-compose ENOENT at ChildProcess._handle.onexit (node:internal/child_process:284:19) at onErrorNT (node:internal/child_process:477:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at ChildProcess._handle.onexit (node:internal/child_process:290:12) at onErrorNT (node:internal/child_process:477:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn docker-compose', path: 'docker-compose', spawnargs: [ 'up', '--build' ] }

Node.js v18.20.3 root@agentgpt:~/AgentGPT# docker -v Docker version 26.1.4, build 5650f9b`

Steps to reproduce

  1. Run setup.sh
  2. Choose the docker-compose option

Possible solution

Change docker-compose up --build to docker compose up --build

Which Operating Systems are you using?

Acknowledgements