Skip to content

Coder scripts exit the following error: exec: WaitDelay expired before I/O complete #10400

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

Closed
mafredri opened this issue Oct 25, 2023 · 0 comments · Fixed by #10407
Closed

Coder scripts exit the following error: exec: WaitDelay expired before I/O complete #10400

mafredri opened this issue Oct 25, 2023 · 0 comments · Fixed by #10407

Comments

@mafredri
Copy link
Member

Sometimes coder_scripts exit with:

2023-10-24 19:31:17.915 [warn]  /tmp/coder-startup-script.log script failed  log_path=/tmp/coder-startup-script.log  execution_time=29.626176306s  exit_code=255  error="exec: WaitDelay expired before I/O complete"

This usually means that a background/disowned process was started by the script and that the background process is still running and has references to file descriptors (usually stdout or stderr) when the script exits.

A simple fix is to redirect stdout and stderr (e.g. to a file, or discard):

my_background_process >/dev/null 2>&1 &

However, we can fix this by:

  1. Improving the error message and linking to docs
  2. Investigate if there's a way we can exit cleanly even when redirection isn't used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant