supercronic icon indicating copy to clipboard operation
supercronic copied to clipboard

Reaper doesn't look for supercronic in PATH

Open Atesca opened this issue 1 year ago • 5 comments

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 https://github.com/aptible/supercronic/blob/cca6b3a90abc99a024f4b437da0f1886da68ca7a/reaper.go#L34

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.

Atesca avatar Oct 12 '24 08:10 Atesca

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

https://github.com/aptible/supercronic/pull/178

qianlongzt avatar Oct 12 '24 10:10 qianlongzt

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

Atesca avatar Oct 12 '24 11:10 Atesca

Same issue using Supercronic on a wolfi docker image

Etheonor avatar Oct 18 '24 10:10 Etheonor

Same issue +1

ttionya avatar Jan 15 '25 18:01 ttionya

Use the full path of Supercronic (e.g., /usr/bin/supercronic) for now, until the fix PR is merged.

qianlongzt avatar Jan 15 '25 18:01 qianlongzt

This is fixed in v0.2.36

almathew avatar Sep 26 '25 15:09 almathew