1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
cron runs intermittently
(1 viewing) 1 Guest
Go to bottomPage: 1234
TOPIC: cron runs intermittently
#33262
Re:cron runs intermittently 7 Months, 2 Weeks ago  
I didn't restart... Another error free day...
I am running the 'vnstat' test as an ordinary ldap user and haven't missed a report yet...
Tony Ellis
Platinum Boarder
Posts: 927
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33296
Re:cron runs intermittently 7 Months, 2 Weeks ago  
I've been having issues with user defined cron jobs running intermittently as well. I'll give your fix a shot and let you know.

B
Bob Stangarone
Gold Boarder
Posts: 173
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
[ Linux User | CC Fan since 2.1 | packet captures and log entires are amazing debugging tools ]
[ www.whataboutbob.org | How To Ask Questions The Smart Way ]
 
#33297
Re:cron runs intermittently 7 Months, 2 Weeks ago  
I've been having issues with user defined cron jobs running intermittently as well. I'll give your fix a shot and let you know.

B
Bob Stangarone
Gold Boarder
Posts: 173
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
[ Linux User | CC Fan since 2.1 | packet captures and log entires are amazing debugging tools ]
[ www.whataboutbob.org | How To Ask Questions The Smart Way ]
 
#33482
Re:cron runs intermittently 7 Months, 1 Week ago  
Ten days now and not a single error on any of the four machines used to test this fix... I'm happy.
Tony Ellis
Platinum Boarder
Posts: 927
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33485
Re:cron runs intermittently 7 Months, 1 Week ago  
I was getting the same messages (about once a day) with winbindd, smbd and sftp-server. Your mod seems to have stopped the messages for me as well. Is it worth doing a bug report?
Nick Howitt
Platinum Boarder
Posts: 2824
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#33489
Re:cron runs intermittently 7 Months, 1 Week ago  
go ahead and file a report if you wish to... there are more directives of a similar nature available, but since this one seems to have worked I have not pursued the matter any further,,,, time is in short supply currently...
Tony Ellis
Platinum Boarder
Posts: 927
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33491
Fixed batch job problem too 7 Months, 1 Week ago  
This fix allows works on the batch/at job problem I had. The emails for each were not getting sent before, now they are.

Thanks
Gerald
Junior Boarder
Posts: 37
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33502
Re:Fixed batch job problem too 7 Months, 1 Week ago  
Unfortunately, this has not solved my problem. I am still receiving the emails intermittently and I still see things like:
Oct 16 04:58:01 tyr crond[3510]: (miles) ORPHAN (no passwd entry)

Perhaps I did something incorrectly in following your steps, Tony.

One thing that is interesting to me is that I see this in the log for my test:
Oct 13 23:59:01 tyr crond[30743]: (miles) CMD (echo test)
Oct 14 04:17:01 tyr crond[3510]: (miles) ORPHAN (no passwd entry)
Oct 14 06:47:01 tyr crond[3510]: (miles) ORPHAN (no passwd entry)
Oct 15 05:54:01 tyr crond[3510]: (miles) ORPHAN (no passwd entry)
Oct 15 23:59:01 tyr crond[1701]: (miles) CMD (echo test)

You'll notice that it didn't fire my cron job on the 14th, but also there are no other errors related to my user at the 23:59 time. Three cron jobs for root ran successfully at that same time.

Any other thoughts?

Miles
Beltane
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33519
Re:Fixed batch job problem too 7 Months, 1 Week ago  
To check you made the change as described is simple... run the command below...
Code:


[root@danda ~]# grep -A 1 bind_policy /etc/openldap/templates/nss_ldap.conf.template && grep -A 1 bind_policy /etc/ldap.conf
#bind_policy                 soft
nss_reconnect_tries         3
#bind_policy                 soft
nss_reconnect_tries         3
[root@danda ~]# 


As I mentioned, there are more directives than the one I choose. Search the web. Something like this might be worth trying...

nss_reconnect_tries 5 # no. of times to double the sleep time
nss_reconnect_sleeptime 4 # initial sleep value
nss_reconnect_maxsleeptime 64 # max sleep value to cap at
nss_reconnect_maxconntries 2 # how many tries before sleeping
Tony Ellis
Platinum Boarder
Posts: 927
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33927
Re:cron runs intermittently 6 Months, 4 Weeks ago  
Tony,

I made the changes to one of my boxes exactly as you directed.

What I found was that it was failing to execute the cron job as scheduled until I rebooted the box.

After the reboot, the cron job is running (hourly) exactly as expected.

Nice job on finding a fix for this, thanks!!!

Bob
Bob Stangarone
Gold Boarder
Posts: 173
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
[ Linux User | CC Fan since 2.1 | packet captures and log entires are amazing debugging tools ]
[ www.whataboutbob.org | How To Ask Questions The Smart Way ]
 
Go to topPage: 1234
  get the latest posts directly to your desktop