[rt-users] fastcgi install problem

Brent Geach brent at telecom1.com
Mon Jun 9 05:23:41 EDT 2003


Hi
After having the problem with attachments above a certain size not going into
RT and reading about someone else having the same problem and that it was
probably mod_perl related I decided to try something drastic.

I have created a new RT installation on a new server RH7.3, mysql 4.0.13, http
2.0.46, mod_fastcgi/2.4.0, rt-3.0.3pre2, MTA is exim 4.20, perl 5.8.0

I installed apache and mod_fastcgi with no problems and installed rt with no
problems and 
perl sbin/rt-test-dependencies --with-mysql --with-fastcgi 
returns everything as found.

When going to the website I can create tickets but get this error in the web
logs:

[Mon Jun 09 10:02:12 2003] [error] [client 10.0.0.160] FastCGI: server
"/export/www/rt3.telecom1.com/bin/mason_handler.fcgi" stderr: [Mon Jun  9
09:02:12 2003] [error]: Scrip 3 died. - Can't locate object method
"output_prefix" via package "MIME::Parser" at
/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm line 333., referer:
http://rt3.telecom1.com/Ticket/Create.html?Queue=3
[Mon Jun 09 10:02:12 2003] [error] [client 10.0.0.160] FastCGI: server
"/export/www/rt3.telecom1.com/bin/mason_handler.fcgi" stderr: Stack:, referer:
http://rt3.telecom1.com/Ticket/Create.html?Queue=3
[Mon Jun 09 10:02:12 2003] [error] [client 10.0.0.160] FastCGI: server
"/export/www/rt3.telecom1.com/bin/mason_handler.fcgi" stderr:
[/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm:333], referer:
http://rt3.telecom1.com/Ticket/Create.html?Queue=3


In syslog:
Jun  9 10:02:12 db1 RT: Scrip 3 died. - Can't locate object method
"output_prefix" via package "MIME::Parser" at
/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm line 333.  Stack:
[/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm:333]
[/export/www/rt3.telecom1.com//lib/RT/Action/SendEmail.pm:197]
[/export/www/rt3.telecom1.com//lib/RT/ScripAction_Overlay.pm:184]
[/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:390]
[/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:337]
[/export/www/rt3.telecom1.com//lib/RT/Transaction_Overlay.pm:169]
[/export/www/rt3.telecom1.com//lib/RT/Ticket_Overlay.pm:3738]
[/export/www/rt3.telecom1.com//lib/RT/Ticket_Overlay.pm:587]
[/export/www/rt3.telecom1.com//lib/RT/Interface/Web.pm:286]
[/export/www/rt3.telecom1.com/share/html/Ticket/Display.html:70]
[/export/www/rt3.telecom1.com/share/html/Ticket/Create.html:246]
[/export/www/rt3.telecom1.com/share/html/autohandler:163]
(/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:359)  
Jun  9 10:02:12 db1 RT: Scrip 30 died. - Can't locate object method
"output_prefix" via package "MIME::Parser" at
/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm line 333.  Stack:
[/export/www/rt3.telecom1.com//lib/RT/Template_Overlay.pm:333]
[/export/www/rt3.telecom1.com//lib/RT/Action/SendEmail.pm:197]
[/export/www/rt3.telecom1.com//lib/RT/ScripAction_Overlay.pm:184]
[/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:390]
[/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:337]
[/export/www/rt3.telecom1.com//lib/RT/Transaction_Overlay.pm:169]
[/export/www/rt3.telecom1.com//lib/RT/Ticket_Overlay.pm:3738]
[/export/www/rt3.telecom1.com//lib/RT/Ticket_Overlay.pm:587]
[/export/www/rt3.telecom1.com//lib/RT/Interface/Web.pm:286]
[/export/www/rt3.telecom1.com/share/html/Ticket/Display.html:70]
[/export/www/rt3.telecom1.com/share/html/Ticket/Create.html:246]
[/export/www/rt3.telecom1.com/share/html/autohandler:163]
(/export/www/rt3.telecom1.com//lib/RT/Scrip_Overlay.pm:359)  
Jun  9 10:02:12 db1 RT: Ticket 6509 created in queue 'sysadmin' by brent
(/export/www/rt3.telecom1.com//lib/RT/Ticket_Overlay.pm:598)  



When running CPAN to check MIME::Parser
I get MIME::Parser is up to date.


Thats now part the problem:

When trying to create a ticket via email the ticket doesnt get created and I
get:
Nothing in RT log

In exims log:
2003-06-09 10:07:57 19PIdB-0003AE-QM <= brent at telecom1.com
H=shadow.telecom1.com (shadow) [10.0.0.160] P=esmtp S=814
id=20030609091353.GA7490 at telecom1.com
2003-06-09 10:07:58 19PIdB-0003AE-QM **
|/export/www/rt3.telecom1.com/bin/rt-mailgate --queue sysadmin --action
correspond --url http://rt3.telecom1.com/ <rt-sysadmin at rt3.telecom1.com>
R=system_aliases T=address_pipe: Child process of address_pipe transport
returned 255 (could mean shell command ended by signal 127 (Unknown signal
127)) from command: /export/www/rt3.telecom1.com/bin/rt-mailgate



And mail gets returned to me with:


The following text was generated during the delivery attempt:

------ pipe to |/export/www/rt3.telecom1.com/bin/rt-mailgate --queue sysadmin
--action correspond --url http://rt3.telecom1.com/
       generated by rt-sysadmin at rt3.telecom1.com ------

RT server error.

The RT server which handled your email did not behave as expected. It
said:


<snip>

<a name="raw"></a>

<pre>Can't locate object method &quot;output_prefix&quot; via package
&quot;MIME::Parser&quot; at
/export/www/rt3.telecom1.com//lib/RT/EmailParser.pm
line 746.


Trace begun at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Exceptions.pm
line 128
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method
&quot;output_prefix&quot; via package &quot;MIME::Parser&quot;
at
/export/www/rt3.telecom1.com//lib/RT/EmailParser.pm line 746.^J') called at
/export/www/rt3.telecom1.com//lib/RT/EmailParser.pm line 746
RT::EmailParser::_SetupMIMEParser('RT::EmailParser=HASH(0x91fb574)',
'MIME::Parser=HASH(0x9104770)') called at
/export/www/rt3.telecom1.com//lib/RT/EmailParser.pm line
170


sql statements etc and at the end

HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0x91fb5bc)') called
at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Interp.pm line 225
HTML::Mason::Interp::exec(undef, undef, 'SessionType', 'REST', 'action',
'correspond', 'queue', 'sysadmin', 'message', 'From brent at telecom1.com Mon Jun
09 10:07:57
2003^JReceived: from shadow.telecom1.com ([10.0.0.160] helo=shadow)^J^Iby
rt.telecom1.com with esmtp (Exim 4.20)^J^Iid 19PIdB-0003AE-QM^J^Ifor
rt-sysadmin at rt3.telecom1.com; Mon, 09 Jun 2003 10:07:57 +0100^JReceived: from
brent by shadow with local (Exim 4.20)^J^Iid 19PIiv-0001yc-9s^J^Ifor
rt-sysadmin at rt3.telecom1.com; Mon, 09 Jun 2003 10:13:53 +0100^JDate: Mon, 9
Jun 2003 10:13:53 +0100^JFrom: Brent Geach
&lt;brent at telecom1.com&gt;^JTo:
rt-sysadmin at rt3.telecom1.com^JSubject: test mail^JMessage-ID:
&lt;20030609091353.GA7490 at telecom1.com&gt;^JMime-Version:
1.0^JContent-Type: text/plain;
charset=us-ascii^JContent-Disposition: inline^JUser-Agent:
Mutt/1.4.1i^JSender: &quot;Brent Geach,,,&quot;
&lt;brent at shadow&gt;^J^J^J--
^JRegards,^J^JBrent              /&quot;\^J                   \ /^JLinux
Registered    X  ASCII Ribbon Campaign^JUser #309941       / \ Against HTML
Mail^J^J^J')
called at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/CGIHandler.pm line
87
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x8e5dd94)',
'HASH(0x8cde760)') called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/CGIHandler.pm
line 70
HTML::Mason::CGIHandler::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0x8e5dd94)',
'CGI::Fast=HASH(0x8f58c8c)') called at
/export/www/rt3.telecom1.com/bin/mason_handler.fcgi line 50
</pre>


</snip>


And the ticket never gets created.

Please could someone enlighten me as to what Im missing.

Some things that may help:

In /etc/aliases
rt-sysadmin: "|/export/www/rt3.telecom1.com/bin/rt-mailgate --queue sysadmin
--action correspond --url http://rt3.telecom1.com/"


In httpd.conf


<VirtualHost *>
    ServerName rt3.telecom1.com
    DocumentRoot /export/www/rt3.telecom1.com
    AddDefaultCharset UTF-8
AddHandler fastcgi-script fcgi
RedirectMatch permanent (.*)/$ http://rt3.telecom1.com$1/index.html
FastCgiServer /export/www/rt3.telecom1.com/bin/mason_handler.fcgi
Alias /NoAuth/images/ /export/www/rt3.telecom1.com/WebRT/html/NoAuth/images/
ScriptAlias / /export/www/rt3.telecom1.com/bin/mason_handler.fcgi/
#
#
#PerlModule Apache2 Apache::compat
#    PerlModule Apache::DBI
#    PerlRequire /export/www/rt3.telecom1.com/bin/webmux.pl
#
#    <Location />
#        SetHandler perl-script
#        PerlHandler RT::Mason
#    </Location>
</VirtualHost>












Regards,

Brent              /"\
                   \ /
Linux Registered    X  ASCII Ribbon Campaign
User #309941       / \ Against HTML Mail




More information about the rt-users mailing list