Cron does not execute commands after upgrade to 21.02 (Linksys 860l)

Hi,
I get only error outputs and cronjobs do not run at all. Everything was working fine before the upgrade from openwrt 19.7.6

Here are some of the errors from logread:

Fri Oct 15 14:20:13 2021 daemon.warn procd: Seccomp support for cron::instance1 not available
Fri Oct 15 14:20:13 2021 cron.err crond[3809]: crond (busybox 1.33.1) started, log level 5
Fri Oct 15 14:23:27 2021 cron.err crond[3973]: crond (busybox 1.33.1) started, log level 5
Fri Oct 15 14:24:00 2021 cron.err crond[3973]: USER root pid 3999 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:25:00 2021 cron.err crond[3973]: USER root pid 4005 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:26:00 2021 cron.err crond[3973]: USER root pid 4010 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:27:00 2021 cron.err crond[3973]: USER root pid 4014 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:28:00 2021 cron.err crond[3973]: USER root pid 4036 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:29:00 2021 cron.err crond[3973]: USER root pid 4067 cmd !/usr/bin/env bash echo "hello world"
Fri Oct 15 14:30:11 2021 cron.err crond[4149]: crond (busybox 1.33.1) started, log level 5```


I copied over an old user config file to regain user permissions for samba/transmission etc. on openwrt 21.02.
Maybe I accidentally changed some user permissions for cron? Might that be the problem here?

The problem might be that you explicitly require bash shell, and it is not installed by default.

Use the normal sh shebang, or install the non-standard bash shell. (Do you really need bash features)

Or have you actually installed bash after the sysupgrade?

1 Like

The "Hello world" bash thing was just a placeholder. I tested it with etherwake/wifi sheduler commands beforehand and none worked. I copy/pasted my old crontab after the upgrade. All these tabs have worked on openwrt 18.6. I am sure it's not a problem with the commands, but with cron itself.