Problem with REST/1.0/NoAuth/mail-gateway

Hello,
I am totally in the dark here. Trying to create a ticket by email does
not work. Calling the following URL

http://rt.hamburg.fcb.com/REST/1.0/NoAuth/mail-gateway?message=bla

(typing it manually into my browser)

yields an error message beginning with:

error: Undefined subroutine &RT::Interface::email::Gateway called at
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway line 32.
context:

277: }
278:
279: # All errors returned from this routine will be in exception
form.
280: local $SIG{‘DIE’} = sub {
281: rethrow_exception( $_[0] );
282: };
283:
284: #
285: # $m is a dynamically scoped global containing this

code stack: /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:281
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:32
/opt/rt3/share/html/autohandler:59

Any hints? I seem to get confused more and more the longer I work on
RT3…

Regards,
Harald

Harald Wagener * FCB/Wilkens * An der Alster 42 * 20099 Hamburg

error: Undefined subroutine &RT::Interface::email::Gateway called at
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway line 32.

I’m still not an expert yet, so these suggestions might be wrong.

It seems like /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway is not
finding the library path where RT was installed. Do any of the webpage
work?
This is the wrong way to fix it, but might help debug the problem.
Try putting:
use lib (“/opt/rt3/lib”);
before that line that errors. (stop and start the webserver. Don’t just do
a apachectl restart)

If that fixes it, then the problem is apache/mod_perl/fast_cgi or however
you have the web interface setup doesn’t have that library path where it
needs it.

-james

error: Undefined subroutine &RT::Interface::email::Gateway called
at
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway line 32.

The error is with my perl installation/locale setup. Apparently, the
perl 5.8 provided by redhat does not like modules compiled with
LANG=en_US.UTF8 set. Reinstalling the modules with LANG=C helped me
alot further along the path. Now RT 3 is usable (after a down time of 3
work days), and the only problems I still have seem to be ones that
everyone else using international characters has (knock on wood).

Regards,
Harald

Harald Wagener * FCB/Wilkens * An der Alster 42 * 20099 Hamburg

The web interface is up and running. I already found the bug.
Reinstalling alot of perl modules with LANG=C set fixed most problems
I
had with RT3 on RedHat9.
Maybe I am too old fashioned to use such a modern dirstribution.

I’ve seen that problem show up in different other ways. This can be
changed system-wide in /etc/sysconfig/i18n
Perhaps mention of the LANG=C should be in the FAQ?

Definitely! Perhaps mention of not recommending redhat 9 personal
edition as a basis for RT 3 is also in order…

The most glaring problems with character encodings and misdisplaying on
the web page could be alleviated by using my hand made perl instead of
the binaries provided by redhat. So by now, everything execept mysql
and sendmail[1] is manually installed and RT 3 begins to run smoothly.

Sorry to have polluted the list with my many problems that were in fact
one.

Regards,
Harald

[1] it’s an intranet setup, so this is ‘secure enough’ for the
moment…and Hey, It Came With the Distro, so it Must Be Good!
Harald Wagener * FCB/Wilkens * An der Alster 42 * 20099 Hamburg