Cron Job fails with Error Message “(getpwnam() failed): No such file or directory”
On a CentOS server, cronjob did not work. Checking the log file found the following error message in /var/log/cron Oct 24 18:35:01 CentOS-75-64-minimal crond[1546]: (/usr/local/bin/monitor-mysql) ERROR (getpwnam() failed) The error was because no user was specified in the cronjob. When you use cronjob in file /etc/crontab, you need to specify the username before the command … Read more