AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

Installation Does not Finish on Rocky Linux

Open MrPetFtz opened this issue 2 years ago • 2 comments

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

  • [X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

When selecting:

? How will you be running AgentGPT? 🐋 Docker-compose (Recommended)

The installation will complete.

Current behaviour

The following error is thrown:

ode:events:491 throw er; // Unhandled 'error' event ^

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

Steps to reproduce

Go through the install process using most up to date docker.

Possible solution

I believe the docker-compose command should be docker compose.

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [X] Linux
  • [ ] macOS
  • [ ] Windows

Acknowledgements

  • [X] My issue title is concise, descriptive, and in title casing.
  • [X] I have searched the existing issues to make sure this bug has not been reported yet.
  • [X] I am using the latest version of AgentGPT.
  • [X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

MrPetFtz avatar Aug 12 '23 22:08 MrPetFtz

I am running into this same error on a fresh install of debian 12.
I've also edited my "index.js" to change "docker-compose" on line 36 to "docker compose" and that did not solve my issue.

theobinomy avatar Oct 18 '23 01:10 theobinomy

Same, just pulled from repo and when tried to install with recommended settings (on latest Chromebook update 122.0.6261.118, but on Linux Debian VM environment) I got same error:

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' ]
}

richyarD avatar Mar 20 '24 22:03 richyarD