-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Error: spawn docker ENOENT #424
Comments
It seems like this is the same issue as #361. I'm actually running into the same issue myself; poked around a bunch w/ permissions, etc. but couldn't really get it to work. |
I ran into the same problem. Before using dockge, there were other stacks on my host. Is this error caused by dockge not being able to manage existing stacks? |
I get the same error if I change to the beta repo. Changing back to :1 doesn't fix it.
|
I'm getting the same error as pvalfar as well. |
Same here! In version 1.4.2 03/17/2024 09:34:35 PM 2024-03-17T20:34:35Z [GETSERVICESTATUSLIST] ERROR: Error: spawn docker ENOENT
03/17/2024 09:34:35 PM at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
03/17/2024 09:34:35 PM at __node_internal_errnoException (node:internal/errors:623:12)
03/17/2024 09:34:35 PM at ChildProcess._handle.onexit (node:internal/child_process:283:19)
03/17/2024 09:34:35 PM at onErrorNT (node:internal/child_process:476:16)
03/17/2024 09:34:35 PM at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
03/17/2024 09:34:35 PM errno: -2,
03/17/2024 09:34:35 PM code: 'ENOENT',
03/17/2024 09:34:35 PM syscall: 'spawn docker',
03/17/2024 09:34:35 PM path: 'docker',
03/17/2024 09:34:35 PM spawnargs: [ 'compose', 'ps', '--format', 'json' ]
03/17/2024 09:34:35 PM } My system: PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy Linux host 5.15.0-100-generic #110-Ubuntu SMP Wed Feb 7 13:28:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux |
version: "3.8"
After adding the above user configuration, I did not report any errors, but I am not sure if this is the cause |
For me this was a permissions problem. Made sure my docker compose assigns proper user:group and ensured stacks directory had appropriate write permissions for this user, as well as access to docker socket. The error wasn't obvious, would be nice to have the app check this on boot. |
Hi everyone, |
I'm encountering this error in the logs as well. Although I don't see any issues with functionality. I believe it's because it's not resolving the PATH for the binary. If I exec into the container through bash, the Line 96 in d451e06
Interestingly I'm running |
@gvkhna did you ever figure this out? I'm running the same stack as you (docker, colima, docker-compose via homebrew) For thread context, I'm running into the same problem. Everything was working fine but Dockge hung after restarting a stack so I took the dockge container down, only for it to not come back up again. The Dockge web server comes online and says my stacks are not managed by Dockge, despite not having changed the stack folder names or location. I also get this familiar error in the logs:
|
I have the same problem. Yesterday it was working, nothing was changed, today all the 30 stacks "are not managed by dockge" and in the log i have that ENOENT error I tried to restore the dockge.db from a past backup, but it does not change the result |
Have you tried rebooting the machine? This worked for me in the past. |
I haven’t checked as it hasn’t caused any issue. But just based on the code I suspect it is not resolving the PATH correctly. |
I think for me it's caused by an unrelated issue with my ugly hack fuse mounted fs that caused the disappearance of all the compose.yml files (probably user error and not software bug) |
🛡️ Security Policy
Description
Starting dockge I have a lot of errors
👟 Reproduction steps
Starting dockge
👀 Expected behavior
No errors log messages
😓 Actual Behavior
ERROR: Error: spawn docker ENOENT
Dockge Version
Version: 1.4.2 Frontend Version: 1.4.2
💻 Operating System and Arch
Windows 11
🌐 Browser
Versione 121.0.6167.161 (Build ufficiale) (a 64 bit)
🐋 Docker Version
Docker version 25.0.2, build 29cf629
🟩 NodeJS Version
v20.7.0
📝 Relevant log output
The text was updated successfully, but these errors were encountered: