[rt-users] RT 4.2.3 - Intermittant Mail Failures with rt-mailtool
Lee Wilson
leefm40 at yahoo.co.uk
Thu May 8 09:09:29 EDT 2014
Thanks Alex,
The /opt/rt4/var directory is definitely writable by www-data as are all the sub-directories.
File systems look good, plenty of disk space and all have no more than 20% inode utilisation so even if there an odd spike it should have enough space.
Oddly, I've restarted the device tonight as I've done every other night (only a dev box so isn't on all the time) and since then it's no longer erroring so guess I'll just have to keep an eye on it.
Lee
On Tuesday, 6 May 2014, 21:57, Alex Vandiver <alexmv at bestpractical.com> wrote:
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
--
RT
Training - Dallas May 20-21
http://bestpractical.com/training
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140508/fd161b88/attachment.htm>
More information about the rt-users
mailing list