<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12pt"><div id="yiv7422726546"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12pt;"><div id="yiv7422726546yui_3_13_0_7_1399496283797_13"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19">Thanks Alex,</span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_21" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><br clear="none"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19"></span></div><div id="yiv7422726546yui_3_13_0_1_1399496283797_6281" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
Sans-Serif;background-color:transparent;font-style:normal;"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19">The /opt/rt4/var directory is definitely writable by www-data as are all the sub-directories.</span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_30" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><br clear="none"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19"></span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_33" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19">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.</span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_37" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><br clear="none"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19"></span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_40" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19">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.</span></div><div id="yiv7422726546yui_3_13_0_1_1399496283797_6630" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><br clear="none"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19"></span></div><div id="yiv7422726546yui_3_13_0_7_1399496283797_48" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;background-color:transparent;font-style:normal;"><span id="yiv7422726546yui_3_13_0_7_1399496283797_19">Lee</span></div><div class="yiv7422726546yqt3507314040" id="yiv7422726546yqt13285"><div class="yiv7422726546yahoo_quoted" id="yiv7422726546yui_3_13_0_7_1399496283797_15" style="display: block;"> <div class="yiv7422726546yui_3_13_0_1_1399496283797_6088" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12pt;"> <div class="yiv7422726546yui_3_13_0_1_1399496283797_6089" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
Sans-Serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, 6 May 2014, 21:57, Alex Vandiver <alexmv@bestpractical.com> wrote:<br clear="none"> </font> </div> <div class="yiv7422726546y_msg_container">On Tue, 2014-05-06 at 21:45 +0100, Lee Wilson wrote:<div class="yiv7422726546yqt9813328199" id="yiv7422726546yqtfd32243"><br clear="none">> RT server error. The RT server which handled your email did not behave<br clear="none">> as expected. It said:<br clear="none">> <br clear="none">> Error in tempdir() using /tmp/XXXXXXXXXX:
Tried to get a new temp name<br clear="none">> different to the previous value 50 times.<br clear="none">> Something wrong with template?? (/tmp/XXXXXXXXXX)<br clear="none">> at /opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm line 476.<br clear="none">> <br clear="none">> Stack:<br clear="none">> [/usr/local/share/perl/5.14.2/Carp.pm:166]<br clear="none">> [/usr/share/perl/5.14/File/Temp.pm:1562]<br clear="none">> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:476]<br clear="none">> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:201]<br clear="none">> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:166]<br clear="none">> [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:136]<br clear="none">> [/opt/rt-4.2.3/sbin/../lib/RT/Interface/Email.pm:1229]<br clear="none">> [/opt/rt-4.2.3/share/html/REST/1.0/NoAuth/mail-gateway:61]<br clear="none">> <br clear="none">> <br
clear="none">> I've had a look in the EmailParser.pm and on line 476 it's just an if<br clear="none">> statement that checks if the temporary directory is writable, as I'm<br clear="none">> running this as root that shouldn't be an issue unless rt-mailtool is<br clear="none">> dropping it's permissions.</div><br clear="none"><br clear="none">The error comes from the server, not rt-mailgate. Also, by default, RT<br clear="none">writes its tmpfiles to /opt/rt4/var, not /tmp -- check that the former<br clear="none">is writable by your webserver.<br clear="none"><br clear="none">The error comes from deep within the core tmpfile-handling module that<br clear="none">Perl provides. I suspect it is caused by running out of inodes, too<br clear="none">many subdirectories of /tmp, or something similar filesystem-related.<br clear="none"><br clear="none"> - Alex<br clear="none"><br clear="none"><br clear="none">-- <br clear="none">RT
Training - Dallas May 20-21<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://bestpractical.com/training">http://bestpractical.com/training</a><div class="yiv7422726546yqt9813328199" id="yiv7422726546yqtfd50477"><br clear="none"></div><br clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div></div></body></html>