Home
TeamSite
Cgitask behaving different on webdesk & Webdeskpro
The_Beast
Cgitask working on webdeskpro is giving me an internerl server error (error code 500) when executed in webdesk.
The error message in /iw-home/local/logs/iwui/error_log is
"sh: /iw-home/httpd/iw-bin/iw-bin: cannot execute
[Tue Aug 2 10:33:51 2005] [error] [client 172.24.139.39] Premature end of script headers: /iw-home/httpd/iw-bin/iw_cgi_wrapper.cgi"
please help
regards
Nitya
Find more posts tagged with
Comments
Migrateduser
A little more data would be helpful.
What version of TS including service packs and patches. Is this a new CGI, did it used to work? Does it work for some users and not others?
And finally, since you said WDPro, be aware that TS 5.5.x is now reaching end-of-life. You should think about ugrading.
Regards,
lissa
The_Beast
NO, it's a new CGI. It is working fine on webdeskpro.
The version of teamsite I am using is 5.5.2.
I have not cheked for all users, but in my case it is not working.
regards
Nitya
gzevin
have it EVER worked before?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
The_Beast
yes it is working fine on webdeskpro and doing what it is supposed to do.
Regards
Nitya
gzevin
Ok. Asking again. Has it ever worked in webdesk?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
The_Beast
No it has not worked even once on webdesk.
Regards
Nitya
gzevin
this is what I thought straightaway.
now, how did you add this script to be executed by Webdesk? Did you add all the parameters as per the admin guide?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
The_Beast
Actually I am using this cgi to set the deployment date time in a workflow.
This cgi is called in cgitask of a workflow and the user gets to select date and time for deployment.
the selected date time is set as the 'timeout' of the successor. so when the task times out deployment is run.
this task is working fine when I tested it on webdeskpro but when I tested it on webdesk it giving me an error
The message is
"sh: /iw-home/httpd/iw-bin/iw-bin: cannot execute
[Wed Aug 3 07:01:10 2005] [error] [client 172.24.139.39] Premature end of script headers: /iw-home/httpd/iw-bin/iw_cgi_wrapper.cgi"
Regards
Nitya
gzevin
look, you have to tell us all the story.. otherwise it's really hard to pull the information from you. let us help you first
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
The_Beast
actually the story is quite long.
I am declaring the cgitask in workflow like this:
declare_task('schedule_deploy',
name => $localizer->format('schedule_deploy.name'),
description => $localizer->format('schedule_deploy.description'),
type => "cgitask",
areavpath => $iw_workarea,
owner => __VALUE__('publish_user'),
command => "$cgitask_ipl",
immediate => "t",
readonly => "t",
variables => {
'delay_task_name' => $localizer->format('delay.name'),
}
);
the variable 'delay_task_name' is name of succesor to be used in the function wf->GetTaskByName();
in the cgiscript I get a datetime selected by user to set timeout for the successor
$taskId = $cgi->{'form'}{'taskid'};
$jobId = $cgi->{'form'}{'jobid'};
my ($task)=TeamSite::WFtask->new($taskId);
my $job=TeamSite::WFworkflow->new($jobId);
my ($date_set,$time_set) = split / /,$cgi->{'form'}{'schedule_deploy'};
my ($dd,$mon,$yyyy) = split /-/,$date_set;
my ($hh,$mm) = split /:/,$time_set;
my $timeout = sprintf("%02d%02d%04d%02d%02d",$mon,$dd,$yyyy,$hh,$mm); ## Converting the selected value into standard format.
my $next_task_name = $task->GetVariable('delay_task_name');
my ($success, $next_task)=$job->GetTaskByName($next_task_name); ## Getting the 'delay' task instance
$next_task->SetTimeout($timeout); ## Setting the 'timeout' for 'delay' task
gzevin
Ok. so you are using WFConstructor..
What will the workflow XML show in the end? AHve you been able to look in there to see what had been produced?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
gzevin
also,
I don't like this string:
sh: /iw-home/httpd/iw-bin/iw-bin
something makes iw-bin to be duplicated... You have to research this
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU