Automatic Firmware Update Cron Not Working

Started by joelmnz, May 30, 2022, 03:59:10 AM

Previous topic - Next topic
OPNsense 22.1.7_1-amd64

Have the preset cron job for automatic firmware update enabled as per attached. It should run at 2am each day to check. I expected that it would have run and picked up 22.1.8_1, but it hasn't.

Exporting the config I can see the following job definition:
        <job uuid="*****">
          <origin>cron</origin>
          <enabled>1</enabled>
          <minutes>0</minutes>
          <hours>2</hours>
          <days>*</days>
          <months>*</months>
          <weekdays>*</weekdays>
          <who>root</who>
          <command>firmware auto-update</command>
          <parameters/>
          <description>Update Firmware</description>
        </job>


Manually running /usr/local/sbin/configctl firmware auto-update worked, but that kind of defeats the purpose of having a cron  ;)

Anyone else experiencing this? If so, we might be able to get a bug raised for it.

Not sure how you want to raise a bug without evidence of a non-local issue. You said the command works fine, but attached no logs on the failed attempts around the time of the auto-update as there should be evidence in the log.

It could be that connectivity is not available or mirror was slow to sync (also information missing here).

Furthermore how long did you use the cron job successfully or did you just set it up? If it's the latter and haven't rebooted yet it's a case of a missing "apply" click.


Cheers,
Franco