Problems attaching files

We are using RT 4.4.0 and appear to be having problems attaching files over some size around 100k. If we try to send an email with a larger attachment, the mail message just drops on the floor. If we try to attach a file through the web interface, the icon has an X over it and an error message appears when the mouse hovers over it, plus the attachment is dropped if we try to save the edit.

Looking in the log I don’t see any messages being generated in either case. I do see messages generated when a file is successfully attached though. Our current attachment size settings should allow larger files than ~100k.

Set($MaxAttachmentSize, 10485760); # 10MB
Set($TruncateLongAttachments, “true”);

I’m not sure what else to look at to determine what’s happening or where things are failing. Have I somehow mis-set the config, or could this be a bug in 4.4.0?

Regards,
-liam

-There are uncountably more irrational fears than rational ones. -P. Dolan
Liam Forbes loforbes@alaska.edu ph: 907-450-8618 fax: 907-450-8601
UAF Research Computing Systems Senior HPC Engineer LPIC1, CISSP

Hi,

This is probably a issue with your web server configuration, you don’t
mention what
you are using.

Researching the following may help:

Apache2 - LimitRequestBody
Nginx - client_max_body_size

Best Regards

MartinOn 2016-04-27 00:25, Liam Forbes wrote:

We are using RT 4.4.0 and appear to be having problems attaching files
over some size around 100k. If we try to send an email with a larger
attachment, the mail message just drops on the floor. If we try to
attach a file through the web interface, the icon has an X over it and
an error message appears when the mouse hovers over it, plus the
attachment is dropped if we try to save the edit.

Looking in the log I don’t see any messages being generated in
either case. I do see messages generated when a file is successfully
attached though. Our current attachment size settings should allow
larger files than ~100k.

Set($MaxAttachmentSize, 10485760); # 10MB
Set($TruncateLongAttachments, “true”);

I’m not sure what else to look at to determine what’s happening or
where things are failing. Have I somehow mis-set the config, or could
this be a bug in 4.4.0?

Regards,
-liam

-There are uncountably more irrational fears than rational ones. -P.
Dolan
Liam Forbes loforbes@alaska.edu ph: 907-450-8618 fax:
907-450-8601
UAF Research Computing Systems Senior HPC Engineer LPIC1,
CISSP


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Washington DC - May 23 & 24, 2016

liam writes:

We are using RT 4.4.0 and appear to be having problems attaching files
over some size around 100k. If we try to send an email with a larger
attachment, the mail message just drops on the floor. If we try to attach
a file through the web interface, the icon has an X over it and an error
message appears when the mouse hovers over it, plus the attachment is
dropped if we try to save the edit.

Looking in the log I don?t see any messages being generated in either case.
I do see messages generated when a file is successfully attached though.
Our current attachment size settings should allow larger files than ~100k.

Set($MaxAttachmentSize, 10485760); # 10MB
Set($TruncateLongAttachments, “true”);

I’m not sure what else to look at to determine what?s happening or where
things are failing. Have I somehow mis-set the config, or could this be
a bug in 4.4.0?

From the RT Wiki:
If you are using MYSQL, it also has a limit.
for mysqld < 4.0.2 syntax under mysqld is:
set-variable = max_allowed_packet=10M
for mysqld > 4.0.2 syntax under mysqld is:
max_allowed_packet=10M

Please refer to http://dev.mysql.com/doc/mysql/en/Program_variables.html

/jeff

The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or
legally privileged. Inadvertent disclosure of this message does not
constitute a waiver of any privilege. If you receive this message in
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message. Please also delete this e-mail
and all copies and notify the sender. Thank you.

For alternate languages please go to http://bayerdisclaimer.bayerweb.com

Message: 4
Date: Wed, 27 Apr 2016 09:17:52 -0800
From: Liam Forbes <loforbes@alaska.edu mailto:loforbes@alaska.edu>
To: rt-users@lists.bestpractical.com mailto:rt-users@lists.bestpractical.com
Subject: Re: [rt-users] problems attaching files
Message-ID: <4D5249A2-1E43-44DF-B5CB-4D49A0FC5388@alaska.edu mailto:4D5249A2-1E43-44DF-B5CB-4D49A0FC5388@alaska.edu>
Content-Type: text/plain; charset=“utf-8”

Martin,

I poked around at the MySQL database thinking we might have a limit there, but it didn’t occur to me to check the web server. We are using Apache 2.4.6 (CentOS).

Turns out the problem was a combination of limits in MySQL, Apache/FCGI, & RT. Once I got them all set properly, adding attachments up to our chosen limit it working. Thanks for the help Martin.

Regards,
-liam

-There are uncountably more irrational fears than rational ones. -P. Dolan
Liam Forbes loforbes@alaska.edu ph: 907-450-8618 fax: 907-450-8601
UAF Research Computing Systems Senior HPC Engineer LPIC1, CISSP