PDA

View Full Version : Cron troubleshooting?



spoonfed
06-30-2009, 08:54 AM
Hi, i've noticed cron jobs added in DA aren't executed at all. I just checked my cron log and found this.

Jun 30 18:38:01 flipper crond[20488]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Jun 30 18:38:01 flipper crond[20488]: Authentication service cannot retrieve authentication info
Jun 30 18:38:01 flipper crond[20488]: CRON (maklarval) ERROR: failed to open PAM security session: Success
Jun 30 18:38:01 flipper crond[20488]: CRON (maklarval) ERROR: cannot set security context

Any ideas of how to fix this?

spoonfed
06-30-2009, 09:23 AM
googled a bit and found this post but no luck:

http://hostechs.com/2008/07/cron-error-failed-to-open-pam-security-session/

went through the whole thing but no help unfortunately, one line i didnt understand:


As Andrew pointed up in one of the comments you can also get this error if the cron user’s account has expired so you may want to verify that before going ahead.

How or rather where do i check that? :)

nobaloney
06-30-2009, 09:49 AM
Use a shell login: Check your cron directory; if there are any cronjobs owned by users no longer on the system, remove them (but not just by deleting the files; read man crond).

Jeff

spoonfed
07-31-2009, 06:03 AM
Thanks, havent had time to look into this for a while but i did check the cron cirectory and there were only active users there, and very few so it wasnt hard to check.

Any ideas what could be wrong?