Automatic modules upgrade & issues

Perhaps not the proper way to do…

FreePBX 10.13.66-16

It executes daily (crontab) this:

sudo -u asterisk /var/lib/asterisk/bin/module_admin upgradeall
sudo -u asterisk /var/lib/asterisk/bin/module_admin reload

in order to keep all modules upgraded

Sometimes it no more connects to asterisk (retrieve.conf error) and I need to issue manually the commands

fwconsole ma upgrade framework
fwconsole reload

to get it working again

( sometimes fwconsole ma remove restapps )

Is this a “normal” issue due to a bad way to proceed with automatic upgrades ?

I noted that

26 0 19 * * /usr/sbin/sysadmin_update_system -a > /dev/null 2>&1

is also present in crontab , can this conflicts some way with daily script ?

Thank you