Click to See Complete Forum and Search --> : Perl: Error - Callback called exit.


Nobody's Hero
02-27-2004, 09:10 PM
I'm trying to install a Perl script (WebGUI from plainblack)...

After several hours getting the damned thing configured right on my server without having root access, I finaly got the test script to report everything was OK.

if I run "perl index.pl" from the command line, I get the HTML I'm supposed to.

But if I access /index.pl from the web, I get "Callback called exit."

Any ideas?

Why does it work from the command line but not from the web? It's very frustrating.

scinerd
02-27-2004, 09:30 PM
what's got me in th past when the script runs it's run as nobody most of the time but when you run it it's using your permissions. I would su - nobody and run the script. Also check the web log sometimes there is more info in there.

Nobody's Hero
02-27-2004, 09:37 PM
i thought permissions might be a problem, so I did a "chmod -R a+rx *" on the root directory... still doesn't work.

I don't seem to have access to error logs.

scinerd
02-27-2004, 10:43 PM
I would still su and try it but it doesn't sound like you can do that. What I would do next is coment all but the basics. See if that works then slowly add in lines till it's broken again.

Nobody's Hero
02-28-2004, 04:03 AM
Here is some more info.

My webhost provides a tool call "CGI Output Monitor" which is used to trouble shoot error 500s...

Here is the output I get, which is correct... Unforftunately, it's not what I get when i access it through the web.

Result:
+ CGI Check succeeded
Set-Cookie: wgSession=35Suq6Qyb39Qc; path=/; expires=Tue, 25-Feb-2014 07:54:45 GMT
Date: Sat, 28 Feb 2004 07:54:45 GMT
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- WebGUI 5.5.4 -->
<html> <head>
<title>Home - My Company</title>
<style>

.content, body {
font-size: 10pt;
font-family: arial;
color: #FFFFFF;
scrollbar-base-color: #8C9CBD;
scrollbar-track-color: #404040;
scrollbar-face-color: #202020;
scrollbar-highlight-color: #555555;
scrollbar-3dlight-color: #444444;
scrollbar-darkshadow-color: #222222;
scrollbar-shadow-color: #333333;
scrollbar-arrow-color: #FFFFFF;
}

select, input, textarea {
color: #000040;
background-color: #FFFFFF;
}

A {
color: #FFDE9C;
}



.verticalMenu {
font-size: 10pt;
text-decoration: none;
font-weight: Bold;
}

.homeLink, .myAccountLink, .verticalMenu A, .verticalMenu A:visited {
color: #EF4200;
text-decoration: none;
}

A:hover, .verticalMenu A:hover {
color: #FFFFFF;
font-weight: Bold;
text-decoration: Underline;
}

.selectedMenuItem A,.selectedMenuItem A:visited {
color: #CCCEF6;
}

.loginBox {
font-size: 10pt;
}

H1 {
font-family: verdana, arial, helvetica;
font-size: 17px;
font-weight: bold;
color: #dddddd;
font-variant: small-caps;
}

.searchBox {
font-size: 10pt;
}

.pagination {
font-family: arial;
font-size: 8pt;
text-align: center;
}

.adminBar {
background-color: #EF4200;
font-size: 8pt;
font-family: arial;
color: #CCD6DF;
}

.formDescription {
font-size: 10pt;
font-weight: bold;
font-family: arial;
color: #FFFFFF;
}

.formSubtext {
font-family: helvetica, arial;
font-size: 8pt;
}

.highlight {
background-color: #EF4200;
}

.tableMenu {
background-color: #202020;
font-size: 8pt;
font-family: Helvetica, Arial;
}

.tableMenu a {
text-decoration: none;
}

.tableHeader {
background-color: #202020;
font-size: 10pt;
font-weight: bold;
font-family: arial;
color: #FFFFFF;
}

.tableData {
font-size: 10pt;
font-weight: none;
font-family: arial;
color: #FFFFFF;

}

.pollAnswer {
font-family: Helvetica, Arial;
font-size: 8pt;
}

.pollColor {
background-color: #EF4200;
}

.pollQuestion {
font-face: Helvetica, Arial;
font-size: 10pt;
text-decoration: none;
font-weight: Bold;
}

.crumbtrail {
font-family: arial;
color: #FFFFFF;

}




.tab {
border: 1px solid #EF4200;
background-color: #333333;
}
.tabBody {
border: 1px solid #EF4200;
border-top: 1px solid #EF4200;
border-left: 1px solid #EF4200;
background-color: #444444;
}
div.tabs {
line-height: 15px;
font-size: 14px;
}
.tabHover {
background-color: #555555;
}
.tabActive {
background-color: #444444;
}
</style><meta http-equiv="Keywords" name="Keywords" content="Home, My Company" />
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
<link rel="icon" href="/WebGUI/www/extras/favicon.png" type="image/png" />
<link rel="SHORTCUT ICON" href="/WebGUI/www/extras/favicon.ico" />
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" marginwidth="0">

<!-- HEADER -->

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td rowspan="3"><img src="/WebGUI/www/extras/styles/webgui5/header-left.gif" border="0" /></td>
<td colspan="2" width="100%" valign="top" align="center" background="/WebGUI/www/extras/styles/webgui5/header-center.gif"><a href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/home"><img src="/WebGUI/www/extras/styles/webgui5/webgui.gif" border="0" vspace="15" /></a></td>
<td rowspan="3"><img src="/WebGUI/www/extras/styles/webgui5/header-right.gif" border="0" /></td>
</tr>
<tr style="font-size: 10px;">
<td><span class="crumbTrail"><a class="crumbTrail" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/home">Home</a></span></td>
<td align="right">User: <a class="myAccountLink" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/home?op=displayAccount">Visitor</a></td>
</tr>
<tr>
<td colspan="2" width="100%" background="/WebGUI/www/extras/styles/webgui5/header-center-bottom.gif"><img src="/WebGUI/www/extras/spacer.gif" border="0" /></td>
</tr>
</table>


<!-- BELOW CRUMBTRAIL -->

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="/WebGUI/www/extras/styles/webgui5/white-top-left.gif" border="0" /></td>
<td width="100%" background="/WebGUI/www/extras/styles/webgui5/white-top-center.gif"><img src="/WebGUI/www/extras/spacer.gif" border="0" /></td>
<td><img src="/WebGUI/www/extras/styles/webgui5/white-top-right.gif" border="0" /></td>
</tr>
</table>



<!-- MAIN NAV and CONTENT -->

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td background="/WebGUI/www/extras/styles/webgui5/leftborder.gif"><img src="/WebGUI/www/extras/spacer.gif" width="53" /></td>
<td><img src="/WebGUI/www/extras/spacer.gif" width="5" /></td>
<td valign="top" class="verticalMenu">
<img src="/WebGUI/www/extras/spacer.gif" width="129" height="1" /><br>
<a class="homeLink" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/home">Home</a>
<br>
<span class="verticalMenu"><a class="verticalMenu" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/getting_started">Getting Started</a><br><a class="verticalMenu" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/webgui_users">WebGUI Users</a><br><a class="verticalMenu" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/your_next_step">Your Next Step</a><br></span>
<a class="myAccountLink" href="http://www.michaelmolino.com/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/home?op=displayAccount">My Account</a>
<br>
<br>
<br>
<div align="center"><a href="http://www.plainblack.com/webgui"><img src="/WebGUI/www/extras/styles/webgui5/icon.gif" border="0" /></a></div>
</td>
<td><img src="/WebGUI/www/extras/spacer.gif" width="5" /></td>
<td background="/WebGUI/www/extras/styles/webgui5/spacer.gif"><img src="/WebGUI/www/extras/spacer.gif" width="10" /></td>
<td><img src="/WebGUI/www/extras/spacer.gif" width="5" /></td>
<td width="100%" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" class="content"><div class="wobject"><div class="wobjectArticle" id="wobjectId-3"><a name="-3"></a>






<div align="center">
<a href="/kunden/homepages/46/d89726853/htdocs/./michaelmolino.com/WebGUI/www/index.pl/getting_started"><img src="/WebGUI/www/extras/styles/webgui5/promotion.gif" border="0" /></a>
</div><p />






<p />












</div></div>

</td>
</tr>
</table>
</td>
<td><img src="/WebGUI/www/extras/spacer.gif" width="5" /></td>
<td background="/WebGUI/www/extras/styles/webgui5/rightborder.gif"><img src="/WebGUI/www/extras/spacer.gif" width="54" /></td>
</tr>
</table>



<!-- FOOTER -->

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="/WebGUI/www/extras/styles/webgui5/footer-left.gif" border="0" /></td>
<td width="100%" align="center" background="/WebGUI/www/extras/styles/webgui5/footer-center.gif"><a href="http://www.plainblack.com"><img src="/WebGUI/www/extras/styles/webgui5/pbs-logo.gif" border="0" /></a></td>
<td><img src="/WebGUI/www/extras/styles/webgui5/footer-right.gif" border="0" /></td>
</tr>
</table>


</body> </html>
STDOUT OK STDERR OK

takshaka
03-09-2004, 11:24 PM
The "Callback called exit" error will pop up up sometimes with mod_perl or some other C code which uses perl_call_sv() to invoke a Perl subroutine.

I would conjecture that your ISP may run Perl CGIs under mod_perl's Apache::Registry, which would explain why the script works fine from both the command line and from the diagnostic utility (which runs the CGIs in a subshell, not from an apache handler). To check if this is the case, you should see if you can force the script to be run as a regular cgi script--ie, changing the extension to .cgi (if the server is so configured) or changing the apache handler to cgi-script instead of perl-script.