LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-07-2016, 07:50 AM   #1
robertmaverick
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Crond no longer working on CentOS Linux release 7.2.1511 (Core)


Hi all,

Since a few days we have problems running our crontab, which is executing some PHP-scripts periodically.

The error we get is as follows:

Code:
Jun  7 14:48:01  crond[15942]: (php) ERROR (getpwnam() failed)
Jun  7 14:48:01  crond[15942]: (php) ERROR (getpwnam() failed)
Jun  7 14:48:01  crond[15942]: (php) ERROR (getpwnam() failed)
Jun  7 14:48:01  crond[15942]: (php) ERROR (getpwnam() failed)
Jun  7 14:48:01  crond[15942]: (php) ERROR (getpwnam() failed)
This is the content of crontab -l:
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed
*/1 * * * * php /var/www/anyfix/includes/libs/dispatch/load_dispatch_data.php
Any help or suggestions is appreciated.

Last edited by robertmaverick; 06-07-2016 at 02:59 PM.
 
Old 06-07-2016, 10:46 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
cron is working but your php script is not. From the posted error the getpwnam function is failing.

If the script has been working what changes or updates were recently made that might cause it to fail? By running the script manually you should get a better indication of the error and where in the script it occurs. From there you will need to determine the cause. Sometimes easier said then done but without seeing the script we can only provide basic help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CentOS 7-1511 Screenshot Tour LXer Syndicated Linux News 0 12-14-2015 07:42 PM
crond daemon not working kamlesh_kmr Linux - General 10 04-19-2012 06:53 AM
crond logwatch stopped working tonj Linux - Server 2 02-27-2012 09:40 AM
crond freezes centos 4.3 box qipman Linux - Software 4 07-12-2006 10:25 AM
My crond isn't working GaX Linux - General 6 01-07-2004 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration