Page 1 of 2

Scheduled Job Never Runs!!!

Posted: Wed Feb 25, 2004 10:23 am
by Triton46
We are running DS 5.2 on 8 servers. One of the development servers will not acknowledge a scheduled job. We had the same issue on another server, but after running the job once or shutting down the server (one of them fixed it) the job now runs.

Our other server, however, is not responding. What do I need to check for scheduling jobs?

Re: Scheduled Job Never Runs!!!

Posted: Wed Feb 25, 2004 10:26 am
by raju_chvr
Are you using Director or Crontab for scheduling ?

Posted: Wed Feb 25, 2004 10:44 am
by roy
Hi,
did you check for hung process of that job? this makes the job in a none runable state and can't be prepared as well.
IHTH,

Posted: Wed Feb 25, 2004 10:53 am
by Triton46
Scheduling through director. When checking the crontab list (crontab -l) there is nothing there for this user.

No hung processes, I shutdown/restarted DS to make sure.

Posted: Wed Feb 25, 2004 11:05 am
by Triton46
I cannot access "Scheduling" tab through Administrator using the administrator login or the dsadmin login.

Posted: Wed Feb 25, 2004 11:14 am
by chulett
Triton46 wrote:I cannot access "Scheduling" tab through Administrator using the administrator login or the dsadmin login.
That tab is for NT servers only.

Scheduling thru the Director to a UNIX server builds 'cron' or 'at' commands. Are you sure that your user that you are connecting as has been granted access to cron/at? They need to be added to 'cron allow' for instance, but you should be getting errors - not schedules that vanish - if they aren't. :?

Posted: Wed Feb 25, 2004 11:17 am
by Triton46
chulett wrote: That tab is for NT servers only.

Scheduling thru the Director to a UNIX server builds 'cron' or 'at' commands. Are you sure that your user that you are connecting as has been granted access to cron/at? They need to be added to 'cron allow' for instance, but you should be getting errors - not schedules that vanish - if they aren't. :?
The other servers do not use cron.allow, we have a few entries in cron.deny but none of them are the user I am using. Do I need to chmod the cron and at files?

The schedule doesn't vanish. It shows it as scheduled at say 4:55pm..4:55pm comes and goes and the job never runs. No log entries.

Posted: Wed Feb 25, 2004 11:23 am
by Triton46
Not sure what I did, but now I can see entries in "crontab -l" for scheduled jobs. Jobs still are not running though. :(

Posted: Wed Feb 25, 2004 12:58 pm
by Triton46
found it! :lol:

user does not have access to run cron. Anyone know where "at" is located?

Posted: Wed Feb 25, 2004 1:16 pm
by Triton46
Well....ignore that...turns out we do have access to cron...so now I am unsure why cron won't pick up the DS job.

I found another post on here about this where the last post says to chmod the &COMO& file to 777. That seems to have allowed me to see jobs when I do a crontab -l...I guess...but it still won't pick them up.

Posted: Wed Feb 25, 2004 2:12 pm
by chulett
One last shot here...

Do you have this issue with one job or with any jobs? Are you sure that absolutely nothing gets logged? I have seen situations where cron would try to start a job and for whatever reason, couldn't. All I saw in the log was the single DSR.SCHED record that indicated the start of a 'scheduled' job via cron, but nothing else. The odder thing was that the Status view would still show the last run time, not the time of the attempted cron start. For me though, this was highly sporadic. The job would run fine for days at a time and then suddenly one day not run. The next day it would go back to running fine. Support was never able to really nail down what was going on.

Speaking of which, have you opened a case with Support on this? I'd suggest that as a next step.

Posted: Wed Feb 25, 2004 2:16 pm
by kduke
The user you used to create the crontab needs to be in the same group as the DataStage developers. &COMO& has nothing to do with a job not running but there plenty of other files which do. I would not chmod 777 on the whole project directory just to solve this problem. You need to add the user that created the crontab to the same group that owns all the jobs.

Posted: Wed Feb 25, 2004 2:18 pm
by Triton46
chulett wrote:One last shot here...

Do you have this issue with one job or with any jobs? Are you sure that absolutely nothing gets logged? I have seen situations where cron would try to start a job and for whatever reason, couldn't. All I saw in the log was the single DSR.SCHED record that indicated the start of a 'scheduled' job via cron, but nothing else. The odder thing was that the Status view would still show the last run time, not the time of the attempted cron start. For me though, this was highly sporadic. The job would run fine for days at a time and then suddenly one day not run. The next day it would go back to running fine. Support was never able to really nail down what was going on.

Speaking of which, have you opened a case with Support on this? I'd suggest that as a next step.
Thanks for the advice Craig.

This happens with any job... no log entry or status change. We've had the sporatic "job didn't run last night" problem as well. I have opened a ticket with DS. They are checking through old solutions to see what fits.

Posted: Wed Feb 25, 2004 2:25 pm
by Triton46
I tried to schedule a job in another project on that folder and I get the following error:
Error calling subroutine: DSR_SCHEDULE(Action=1); check DataStage is set up correctly in project DRDWProj (Subroutine failed to complete successfully (30107))
I don't get this error in the other project, the job schedules but will not run.

Posted: Wed Feb 25, 2004 2:27 pm
by ogmios
If jobs sometimes don't startup, it may be time to make the T30FILES parameter larger (search for it on this site).

We've had it in the past where this maximum number of concurrent open hash files was reached and this results in some jobs not starting (since each job needs 4 hashfiles just to start).

Ogmios