Closed kumy closed 4 years ago
Not a random crash. It is 100% reproducible on execution of the first crontab. I've encountered this with Debian buster with the 0.6.1
statically linked build. Dynamic build seems to work.
The following Dockerfile will reproduce the issue and crash after 15 seconds:
from debian:buster
RUN apt-get update && apt-get -y install wget \
&& wget https://github.com/webdevops/go-crond/releases/download/0.6.1/go-crond-64-linux \
&& chmod +x go-crond-64-linux \
&& echo "@every 15s www-data echo HI" > crontab
CMD ["/go-crond-64-linux", "root:/crontab"]
Recompile, do not enable CGO.
set CGO_ENABLED=0
New version coming soon
Please try again with 20.6.0
, reopen if still exists.
Thanks! The issue is resolved, however it seems that now the metrics http server is always started even when metrics are disabled.
Will be fixed with next version.
go-crond
crash randomly with this trace: