[rt-users] RT 4.2.3 - Intermittant Mail Failures with rt-mailtool
Alex Vandiver
alexmv at bestpractical.com
Tue May 6 16:57:28 EDT 2014
On Tue, 2014-05-06 at 21:45 +0100, Lee Wilson wrote:
> RT server error. The RT server which handled your email did not behave
> as expected. It said:
>
> Error in tempdir() using /tmp/XXXXXXXXXX: Tried to get a new temp name
> different to the previous value 50 times.
> Something wrong with template?? (/tmp/XXXXXXXXXX)
> at /opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm line 476.
>
> Stack:
> [/usr/local/share/perl/5.14.2/Carp.pm:166]
> [/usr/share/perl/5.14/File/Temp.pm:1562]
> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:476]
> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:201]
> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:166]
> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:136]
> [/opt/rt-4.2.3/sbin/../lib/RT/Interface/Email.pm:1229]
> [/opt/rt-4.2.3/share/html/REST/1.0/NoAuth/mail-gateway:61]
>
>
> I've had a look in the EmailParser.pm and on line 476 it's just an if
> statement that checks if the temporary directory is writable, as I'm
> running this as root that shouldn't be an issue unless rt-mailtool is
> dropping it's permissions.
The error comes from the server, not rt-mailgate. Also, by default, RT
writes its tmpfiles to /opt/rt4/var, not /tmp -- check that the former
is writable by your webserver.
The error comes from deep within the core tmpfile-handling module that
Perl provides. I suspect it is caused by running out of inodes, too
many subdirectories of /tmp, or something similar filesystem-related.
- Alex
More information about the rt-users
mailing list