TS 6.1 SP1, Solaris 8
I'm not sure is this perl or wf issue...
We have a workflow with external task. External task executes publish.ipl script. Workflow is started every 5 minutes. Usually everything works okay and editions are published, but about 10 times per day execution of publish.ipl fails and generates error in iwjoberrors.log:
Could not run /opt/iwov/iw-home/iw-perl/bin/iwperl /opt/iwov/iw-home/local/bin/publish.ipl for task 4594399; aborting (r
equires admin attention)
and error in iwtrace.log:
ERROR: Fork failed (errno : 12, errmsg : Not enough space). Unable to execute command -> /opt/iwov/iw-home/iw-perl/bin/iwperl
There is no other errors in workflow UI and there is normal text "This task does not require your interaction." in task details.
Any idea what is wrong?
publish.ipl:
#!/opt/iwov/iw-home/iw-perl/bin/iwperl
use TeamSite::Config;
use TeamSite::WFworkflow;
use TeamSite::WFtask;
my $iwhome = TeamSite::Config::iwgethome();
my $wfwWorkflow = new TeamSite::WFworkflow($ARGV[0]);
my $wfwTask = new TeamSite::WFtask($ARGV[1]);
my $branch = $wfwWorkflow->GetVariable("Branch");
my $cmd = "$iwhome/bin/iwpublish -g -f $branch STAGING 'Edition published from wf'";
my $taskStatus = 0;
my $taskStatusMsg = "";
qx($cmd);
$taskStatus = $?;
if($taskStatus == 0) {
$taskStatusMsg = "Publish task completed.";
} elsif($taskStatus == 1) {
$taskStatusMsg = "Publish task failed to start.";
} elsif($taskStatus == 2) {
$taskStatusMsg = "Publish task complete with errors.";
$taskStatus = 1;
} elsif($taskStatus == 256) {
$taskStatusMsg = "Nothing to publish. Publish task completed.";
$taskStatus = 1;
} else {
$taskStatusMsg = "Publish task failed with an unknown error. Status: $taskStatus.";
$taskStatus = 1;
}
$wfwTask->CallBack($taskStatus, $taskStatusMsg);
Workflow:
[html]
[/html]
Edit: Added error in iwtrace.log