Closed dakky closed 2 years ago
The only thing I see interesting here is the label for chadburn.enabled being "True" and not "true". You may need to wrap your true
label with quotes like "true"
. I'm not actually sure about this.
From the architecture referenced, I'm curious if you are running this on a Raspberry Pi 4?
Also, your schedule appears to me to be in a native CRON syntax. Chadburn uses a project under the hood that requires a slightly different format. Currently, it appears your tasks are set to be run every 38 seconds after the minute instead of at 38 minutes after the hour. Please see: https://pkg.go.dev/github.com/robfig/cron.
thats it. It has to be "true" as String and not Boolean.
I'll try the go version of cron definition.
and yes: i'm running on a raspberry pi 4 ;-)
Fingers crossed here that's the problem.
At least using "true" as String triggers Chadburn. but the task is not executed. And the behavior with the different cron syntaxes is ... unpredictable a least ;-)
Here my log, commented lines are my notes
### added job with 5 field syntax, log messages are fine, there are resgistration and deregistration entries
chadburn | cron_utils.go:13 ▶ DEBUG added
chadburn | scheduler.go:89 ▶ NOTICE New job registered "backup-influxdb" - "/backup/backup.sh" - "50 20 * * *" - ID: 4
### here the job should have been executed, no job execution happened
### now ich switched to 6 field syntax, there is NO registration entry and job does not get exectued
chadburn | scheduler.go:94 ▶ NOTICE Job deregistered (will not fire again) "backup-influxdb" - "/backup/backup.sh" - "50 20 * * *" - ID: 4
chadburn | cron_utils.go:13 ▶ DEBUG removed
### here I disabled chadburn via label on the influx container, a deregistration entry appears, no matching registration
chadburn | scheduler.go:94 ▶ NOTICE Job deregistered (will not fire again) "backup-influxdb" - "/backup/backup.sh" - "0 58 20 * * *" - ID: 0
chadburn | cron_utils.go:13 ▶ DEBUG removed
now its working finally. bugs:
Setup:
docker-compose chadburn:
docker-compose influxdb
docker inspect of the container
Logs of chadburn
Do I miss something?