- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron not running for one account, password not exp...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 09:31 AM
тАО10-08-2009 09:31 AM
Cron not running for one account, password not expired
Yesterday, it ran this job until 8:55 am, and after that it ceased to run any jobs at all. The owner account is still active, and the password was not expired. To be safe, we changed the password anyway, but that did not resolve the problem.
Here is the crontab entry for the job that runs every five minutes:
00,05,10,15,20,25,30,35,40,45,50,55 * * * * /aps/store/commands/roll_ai.sh Production > /aps/store/commands/logs/roll_ai.log 2>&1
We are certain that the scripts are not even starting. As you can see in the example above, we redirect stdout and stderr to a log file, and the date/time stamp on this file is not being updated.
However, in the /var/adm/cron/log file, it shows the tasks as starting. For example, it shows the following:
> CMD: /aps/store/commands/roll_ai.sh Production > /aps/store/commands/logs/roll_ai.log 2>&1
> mfg 538 c Thu Oct 8 10:00:00 PDT 2009
< root 536 c Thu Oct 8 10:00:00 PDT 2009
< mfg 538 c Thu Oct 8 10:00:31 PDT 2009 ts=13
The account that owns the crontab can execute the script exactly as is appears in the crontab when we run it from the shell. Nothing obvious has changed--file permissions are all the same. None of the partitions are full. We stopped and restarted the cron daemon, and that had no effect.
After researching it all day, and being unable to explain the problem, we rebooted the server at 7:00 pm last night, and the cron began working again. It ran every five minutes, as scheduled, until 7:55 pm, then it stopped again. It started again this morning and ran until 9:05 am.
This is only happening for the crontab associated with one account. Cron jobs owned by other users do not appear to be affected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 09:50 AM
тАО10-08-2009 09:50 AM
Re: Cron not running for one account, password not expired
Any chance you're running into the queue limit for how many jobs can be scheduled (100)? See "man queuedefs".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 10:09 AM
тАО10-08-2009 10:09 AM
Re: Cron not running for one account, password not expired
A reboot would silently fix any issues related to /etc/utmp corruption, as the utmp file is reinitialized at boot. It would also fix any issues related to over-long /var/adm/wtmp(x) for the same reason (but the old copies are kept safe).
The cron log would indicate that cron did try to run the job, but failed with return code 13. The redirections would take effect for the actual job command only... so if there was a problem in transitioning to the "mfg" user, there might be some error messages in the local mailbox of the "mfg" user instead of anything in the log file.
Have you looked into /var/mail/mfg? There might be some more clues.
It is also possible that the job just dies with error code 13 without outputting anything at all. In that case, there would be no need to write anything to the job's log file.
In your log example, the process has spent at least 30 seconds before terminating with return code 13. That sounds like something might be timing out... is the time between job start and job end messages always about the same when the job does not run properly?
Run the 'ps' command with suitable options in an infinite loop to see what's going on with the user "mfg":
while true; do clear; ps -fu mfg; sleep 2; done
Wait for the next timeslot of the cron job and see what happens.
Or add "set -x" to the beginning of the /aps/store/commands/roll_ai.sh script: that guarantees you get at least _some_ output in the job log file if the script even begins running.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 10:21 AM
тАО10-08-2009 10:21 AM
Re: Cron not running for one account, password not expired
I would look at:
cron logs
/var/adm/syslog/syslog.log
Putting debugging diagnostics into cron run scripts to see if they are even running at all.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 12:02 PM
тАО10-08-2009 12:02 PM
Re: Cron not running for one account, password not expired
Thank you for the suggestion. However, it does not appear we are running into the queue limit.
Matti--
Thank you for your suggestions. Unfortunately, /var/mail/mfg doesn't have anything related to these jobs. I didn't realize 13 was the return code from the process. If so, then it looks like an EACCES error, which might make be related to messages I am seeing in the syslog.
Steven--
Thanks for mentioning the syslog. After my original post, our job that is scheduled to run every five minutes ran once, at 11:05 am. When I take the messages in the syslog at times when the jobs have run, and compare them to times when the jobs have not run, I see a definite pattern, but I don't understand it yet.
On those five-minute intervals where the cron jobs have failed to run, there are messages in the syslog from adclient saying:
INFO <41 nssnextprpasswd=""> daemon.ipcclient Skipping orphaned user 'CN=rdutt,CN=Users,CN=PSGWMPP1-SOX,CN=Zones,CN=Centrify,CN=Program Data,DC=jnj,DC=com'
Two or three of these messages appear in the log, and about 40 seconds later cdcwatch detects that the adclient process is not running, and it restarts it.
I don't know what the adclient does, so I am not sure how that might cause the cron jobs to fail, but there seems to be a correlation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 09:41 AM
тАО10-15-2009 09:41 AM
Re: Cron not running for one account, password not expired
Centrify support has been working with JNJ on a similar issue. We will be more than happy to help resolve the potential issue, please contact us at support.us@centrify.com
Centrify Technical Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 09:50 AM
тАО10-15-2009 09:50 AM
Re: Cron not running for one account, password not expired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 12:13 AM
тАО10-16-2009 12:13 AM
Re: Cron not running for one account, password not expired
At least on 11.31, both setgid(2) & setuid(2) done to the user that did crontab.
I'm not sure why you are getting that SIGPIPE.