turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
71 stars 16 forks source link

SuiteCRM appliance cron error #1685

Open N-Storm opened 2 years ago

N-Storm commented 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.

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"

JedMeister commented 2 years ago

Sorry for slow response @N-Storm. Great work! Thanks for reporting the issue and bonus points for providing the workaround...