Open N-Storm opened 2 years ago
Version: turnkey-suitecrm-16.1-buster-amd64
Issue: Every hour you will be getting following error:
/etc/cron.hourly/suitecrm: This account is currently not available. run-parts: /etc/cron.hourly/suitecrm exited with return code 1
Cause: /etc/cron.hourly/suitecrm script launches via su www-data which has /sbin/nologin as default shell set in /etc/passwd.
/etc/cron.hourly/suitecrm
su www-data
/sbin/nologin
/etc/passwd
Solution: Fix /etc/cron.hourly/suitecrm script by adding shell via -s keyword: su www-data -s /bin/bash -c "cd /var/www/suitecrm && php -f cron.php > /dev/null 2>&1"
-s
su www-data -s /bin/bash -c "cd /var/www/suitecrm && php -f cron.php > /dev/null 2>&1"
Sorry for slow response @N-Storm. Great work! Thanks for reporting the issue and bonus points for providing the workaround...
Version: turnkey-suitecrm-16.1-buster-amd64
Issue: Every hour you will be getting following error:
Cause:
/etc/cron.hourly/suitecrm
script launches viasu www-data
which has/sbin/nologin
as default shell set in/etc/passwd
.Solution: Fix
/etc/cron.hourly/suitecrm
script by adding shell via-s
keyword:su www-data -s /bin/bash -c "cd /var/www/suitecrm && php -f cron.php > /dev/null 2>&1"