Skip to content
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

Reaper doesn't look for supercronic in PATH #177

Open
atesca09 opened this issue Oct 12, 2024 · 3 comments · May be fixed by #178
Open

Reaper doesn't look for supercronic in PATH #177

atesca09 opened this issue Oct 12, 2024 · 3 comments · May be fixed by #178

Comments

@atesca09
Copy link

Since #172 in v0.22.3 I'm getting

time="2024-10-12T08:43:03+02:00" level=info msg="reaping dead processes"
time="2024-10-12T08:43:03+02:00" level=fatal msg="Failed to fork exec: no such file or directory"

I debugged that behavior to

pid, err := syscall.ForkExec(args[0], args, pattrs)

If the current working dir is / but supercronic is installed in a directory included in PATH e.g. /usr/local/bin/supercronic the reaper still tries to execute supercronic from / which doesn't exist there.

@qianlongzt
Copy link
Contributor

I made a fix, you can try it. @atesca09

#178

@atesca09
Copy link
Author

Thanks for the prompt fix! I've tested the changes, and it works for me now.

@Etheonor
Copy link

Same issue using Supercronic on a wolfi docker image

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.

3 participants