Installation Does not Finish on Rocky Linux
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.
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.
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' ]
}