Not sure if this is a pihole or crontab problem. (Or anything else, newbie, sorry for that). I didn't change anything the last days, when suddenly my mailbox was flooded by the following cron error report.
Since last night I get get this mail every 10 minutes from Cron:
/opt/pihole/updatecheck.sh: line 77: /usr/bin/pihole-FTL: Operation not permitted
/opt/pihole/updatecheck.sh: line 91: /usr/bin/pihole-FTL: Operation not permitted
My Crontab:
# 0,10,20,30,40,50 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
The pihole works as far as I can tell, so I just tried to comment out the crontab line. Strangely, it is still done every 10 minutes even with # at the beginning of the line. No other service calls updatecheck.sh script. Unfortunately, I don't have the experience to make sense of the available information. Why is the script not running properly and why is the cron still running?
/opt/pihole/updatecheck.sh line 77 to 94
FTL_BRANCH="$(pihole-FTL branch)" ### line 77
echo -n " ${FTL_BRANCH}" >> "${LOCAL_BRANCH_FILE}"
LOCAL_VERSION_FILE="/etc/pihole/localversions"
CORE_VERSION="$(get_local_version /etc/.pihole)"
echo -n "${CORE_VERSION}" > "${LOCAL_VERSION_FILE}"
chmod 644 "${LOCAL_VERSION_FILE}"
if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then
WEB_VERSION="$(get_local_version /var/www/html/admin)"
echo -n " ${WEB_VERSION}" >> "${LOCAL_VERSION_FILE}"
fi
FTL_VERSION="$(pihole-FTL version)" ### line 91
echo -n " ${FTL_VERSION}" >> "${LOCAL_VERSION_FILE}"
fi
System
Raspberry Pi 4B 8GB with Raspberry Pi OS 64-Bit