Hi, Here is a patch that fixes the problem.
Alex
commit 314d6581942e475a96cdf4b4766d083d7a49f61c Author: Alexandre Rossi <[email protected]> Date: Tue Sep 17 11:15:48 2019 +0200 avoid hourly error in cron with no whisper db (Closes: #940554) diff --git a/debian/bin/graphite-build-search-index b/debian/bin/graphite-build-search-index index 58e1896..5a9a357 100755 --- a/debian/bin/graphite-build-search-index +++ b/debian/bin/graphite-build-search-index @@ -9,12 +9,14 @@ INDEX_FILE="/var/lib/graphite/search_index" WHISPER_DIR="/var/lib/graphite/whisper" -cd ${WHISPER_DIR} && find -L . -name '*.wsp' | sed \ - -e 's@\.wsp$@@' \ - -e 's@^\./@@' \ - -e 's@/@.@g' > ${INDEX_FILE_TMP} +if [ -d ${WHISPER_DIR} ]; then + cd ${WHISPER_DIR} && find -L . -name '*.wsp' | sed \ + -e 's@\.wsp$@@' \ + -e 's@^\./@@' \ + -e 's@/@.@g' > ${INDEX_FILE_TMP} -chmod 0640 ${INDEX_FILE_TMP} -chown _graphite:_graphite ${INDEX_FILE_TMP} + chmod 0640 ${INDEX_FILE_TMP} + chown _graphite:_graphite ${INDEX_FILE_TMP} -mv -f ${INDEX_FILE_TMP} ${INDEX_FILE} + mv -f ${INDEX_FILE_TMP} ${INDEX_FILE} +fi

