Mailing List CGatePro@mail.stalker.com Message #98775
From: Bret Miller <bret.miller@gci.org>
Subject: Re: Error enabling CGPSA - External helper output closed
Date: Mon, 02 Nov 2009 07:43:24 -0800
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
DBI is a required perl module when using SQL-based functions in SpamAssassin. Verify your SpamAssassin requriements, making sure you install the basic required modules and you should be fine.

Bret

Steve Harman wrote:
Hello all!
 
I wonder if someone could help please?  I’m getting ‘External helper output closed’ when enabling the CGPSA spam filter.  I’ve tried subscribing to the CGPSA discussion list and posting my question there, but my messages never appear and indeed the list doesn’t seem to have had any traffic since September…
 
Our setup is: CGP 5.2.6, CentOS Linux (i386), CGPSA in headers-only mode, CGPSA v1.6b2.
 
Looking at the cgpsa.err log generated by CGPSA (below) I spotted “Can't locate DBI.pm” relating to “/usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/SQLBasedAddrList.pm line 80.”   I managed to install DBI.pm using “perl -MCPAN -e install DBI” & that gave no error but I still get the following after enabling CGPSA as a helper:
 
From cgpsa.err
 

* Wed Oct 28 15:25:33 2009 Standard Error Redirected By TFF Enterprises CGPSA Filter 1.6b2

Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/SQLBasedAddrList.pm line 80.

BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/SQLBasedAddrList.pm line 80.

Compilation failed in require at /usr/raid/CommuniGate/cgpsa line 367.

 
Here’s what happens in our CGP log when I enable CGPSA as a content-filtering helper:
 

From the CGP Log

 

15:18:38.043 4 EXTFILTER(CGPSA) inp(045): * TFF Enterprises CGPSA Filter 1.6b2 Starting
15:18:38.043 4 EXTFILTER(CGPSA) inp(070): * Loading Configuration File /usr/raid/CommuniGate/Settings/cgpsa.conf
15:18:38.066 4 EXTFILTER(CGPSA) inp(058): *  Attempting to load domain configuration for main domain
15:18:38.066 4 EXTFILTER(CGPSA) inp(043): *  Using root configuration for main domain
15:18:38.066 4 EXTFILTER(CGPSA) inp(027): * Configuration File Loaded
15:18:38.066 4 EXTFILTER(CGPSA) inp(028): * Parallel Requests Mode: On
15:18:38.120 2 EXTFILTER(CGPSA) reading finished
15:18:38.120 1 EXTFILTER(CGPSA) reading failed. Error Code=external helper output closed
15:18:38.120 2 EXTFILTER(CGPSA) task terminated. retCode=2
15:18:42.311 4 EXTFILTER(CGPSA) VSMTPInput-653002 waiting for restart
15:18:43.311 4 EXTFILTER(CGPSA) VSMTPInput-653002 waiting for restart
15:18:44.119 2 EXTFILTER(CGPSA) receiver finished
 
The Settings > General > Helpers page of the CGP WebAdmin interface shows “External helper output closed” in red text alongside CGPSA whenever I enable it.  I’ve checked the path to cgpsa is correct and tried launching cgpsa from the command line which appears successful:
 
# ./cgpsa
* TFF Enterprises CGPSA Filter 1.6b2 Starting
* Loading Configuration File /usr/raid/CommuniGate/Settings/cgpsa.conf
*  Attempting to load domain configuration for main domain
*  Using root configuration for main domain
* Configuration File Loaded
* Parallel Requests Mode: On
 
Can anybody suggest something – I’m at a loss!
 
Thanks in advance,
 
Steve

 

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster