Daily cron error message (v-update-letsencrypt-ssl)

It seems the problem is caused by the code used in v-add-letsencrypt-domain, which is called internally by v-update-letsencrypt-ssl when updating a certificate. This issue was introduced in Hestia 1.8.12.

# Adding LE autorenew cronjob
if [ -z "$(grep v-update-letsen "$HESTIA/data/users/$ROOT_USER/cron.conf")" ]; then
        min=$(generate_password '012345' '2')
        hour=$(generate_password '1234567' '1')
        echo "$min $hour * * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl" > /etc/cron.d/hestiaweb
fi

The ROOT_USER variable is a new addition in Hestia 1.9.x, so it is not available in Hestia 1.8.x.

To fix it, replace $ROOT_USER by admin:

sed -i 's/$ROOT_USER/admin/' /usr/local/hestia/bin/v-add-letsencrypt-domain
5 Likes