Bugzilla attachment error

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Bugzilla attachment error

antovinraj
Hi All,

I am trying to attach a 7MB file in my bugs and it is giving an error
as "*CGI.pm:
Server closed socket during multipart read (client aborted?).*".

Checked in how much max size is configured in maxattachmentsize is *1024.*

While checking where the temporary files are written in the server is "
*/var/tmp*" folder is

#  lsof | grep tmp

vmtoolsd   1059      root    3u      REG              253,0     5172
393310 /tmp/vmware-root-2393907324/vmware-apploader-1059.log (deleted)
attachmen 20077      bugs    3u      REG              253,0  *4227072*
393257 /tmp/pcEcTJ_9bU
attachmen 20131      bugs    3u      REG              253,0  *4227072*
  393259 /tmp/6_fR2UnK00

Checked the permission of the folder in the server and it set correctly.

drwxrwxrwt.   5 root root  4096 Mar 11 00:56 tmp

When ever I attach a file in the bugs it is uploading data up to the size "
*4227072*" and it is giving error.

CGI script details as below.

# perl -MCGI -le 'print $CGI::VERSION'
4.27

Could you please suggest how to resolve this issue.

Regards,
Antoine.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla attachment error

antovinraj
Hi,

Able to attach smaller files in the bugs which is less than 3 MB.

I am using Apache web server for my application.

Attached my httpd.conf file for reference.

Also I have tried to resolve using the link provide by you.

Regards,
Antoine.

On Fri, Mar 11, 2016 at 4:09 PM, Thorsten Schöning <[hidden email]>
wrote:

> Guten Tag Antoine Vinodh Raj,
> am Freitag, 11. März 2016 um 10:20 schrieben Sie:
>
> > I am trying to attach a 7MB file in my bugs and it is giving an error
> > as "*CGI.pm:
> > Server closed socket during multipart read (client aborted?).*".
>
> Do smaller files work?
>
> > Checked in how much max size is configured in maxattachmentsize is
> *1024.*
>
> This is a Bugzilla specific setting, your error is before the data
> even gets there. Additionally, read the documentation for that setting
> very carefully, it's NOT an overall attachment size limit by itself.
>
> > Could you please suggest how to resolve this issue.
>
> Check smaller files and your web server settings, quota limits of
> SELinux/AppArmor or such. Additionally you shouldn't rule out the
> client itself, like the error message already suggets. The client may
> simply stop sending data for whatever reason. This might be seen
> Wireshark or such.
>
>
> http://stackoverflow.com/questions/11528555/upload-file-size-is-limited-to-32kb-and-i-get-an-error-of-cgi-pm-server-closed
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you
> reply.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla attachment error

antovinraj
Hi,

When I am modifying the httpd config file in different ways. While removing
this setting of environment variable from config file, I am able to attach
larger files in the bugs.

"*SetEnv PERL_UNICODE SD" *

I found in a blog that it is particular to the Perl Unicode and I am not
sure why it is blocking the attachments.


Can you please provide more info on this.

Thanks in advance.

Regards,
Antoine.


On Mon, Mar 14, 2016 at 2:42 PM, Thorsten Schöning <[hidden email]>
wrote:

> Guten Tag Antoine Vinodh Raj,
> am Montag, 14. März 2016 um 10:05 schrieben Sie:
>
> > Attached my httpd.conf file for reference.
>
> This list removes most attachments, so you need to use a file hoster
> or provide the relevant parts inline.
>
> > Also I have tried to resolve using the link provide by you.
>
> That doesn't help much, so what's the result? Did you find e.g.
> "LimitRequestBody" in your config? Did you use Wireshark to trace the
> communication with your client? What about SELinux/AppArmor or quotas,
> did you check all of this with negative result or don't you use any of
> those?
>
> We can only provide ideas, it's up to you to find the problem. :-)
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you
> reply.
>
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla attachment error

antovinraj
Hi,

I have performed the diff between 2 files and provided as below;

[root@XXX conf]# diff httpd.conf httpd.conf_01
35c35
< #SetEnv PERL_UNICODE SD
---
> SetEnv PERL_UNICODE SD
[root@XXX conf]#

Attached both conf files for a reference.

Regards,
Antoine.

On Thu, Mar 17, 2016 at 12:53 PM, Thorsten Schöning <[hidden email]>
wrote:

> Guten Tag Antoine Vinodh Raj,
> am Donnerstag, 17. März 2016 um 07:46 schrieben Sie:
>
> > When I am modifying the httpd config file in different ways. While
> removing
> > this setting of environment variable from config file, I am able to
> attach
> > larger files in the bugs.
>
> > "*SetEnv PERL_UNICODE SD" *
>
> > I found in a blog that it is particular to the Perl Unicode and I am not
> > sure why it is blocking the attachments.
>
> It surely isn't. Which blog are you talking about, can you provide the
> URL? I can't find any useful data about that env variable. It's most
> likely that during your tests you have changed something else
> additionally which is responsible. Unicode has nothing to do with if
> you are able to store 1 MB of data or 7, attachments are binary files
> and therefore treated as bytes instead of strings and I really doubt
> that even side effects are responsible in your case.
>
> If you still have your original, not working configuration diff it
> against your current working version. I would be really surprised if
> PERL-UNICODE would be the only difference.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you
> reply.
>
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla attachment error

antovinraj
In reply to this post by antovinraj
Thank you for your quick response.

On Thu, Mar 17, 2016 at 1:23 PM, Thorsten Schöning <[hidden email]>
wrote:

> Guten Tag Thorsten Schöning,
> am Donnerstag, 17. März 2016 um 08:23 schrieben Sie:
>
> > It surely isn't. Which blog are you talking about, can you provide the
> > URL? I can't find any useful data about that env variable.
>
> PERL_UNICODE SD assumes UTF-8 on all relevant input and output, which
> is simply wrong when reading/writing arbitrary binary data. It MAY be
> UTF-8 encoded strings, but not necessarily, especially not of course
> for binary files like images or such. So I maybe was wrong and
> PERL_UNICODE was the root cause in your case, e.g. if your failing
> attachments contained a lot of UTF-8 valid data by chance until non
> UTF-8 valid byte sequences where reached and failed for some reason.
>
> So in your case with your 3 MB files working that would mean that
> those 3 MB of data are by chance valid UTF-8, but on byte 4227072 of
> your 7 MB not working file the valid UTF-8 sequence would end.
> Possible of course, but I still find this a bit unlikely, though.
>
> Because from my experience Perl more likely produces garbage when it
> is forced to use UTF-8 on non UTF-8 data, because in most cases it
> doesn't validate that it has UTF-8 simply for performance reasons.
> Additionally, I would have expected the typical "Wide character in
> ..." errors in the error logs of your web server.
>
> In any case, from my understanding removing PERL_UNICODE is the proper
> thing to do. Applications and libs need to handle such thing and a non
> Unicode compatible application doesn't get Unicode compatible
> magically by setting input/output encoding on the server side if you
> can't influence what gets send by the client and how the app works and
> such. Additionally, Bugzilla is Unicode compatible for some years
> already, I think it was officially supported with version 3.0.
>
> http://docstore.mik.ua/orelly/perl4/cook/ch08_22.htm
> https://en.wikipedia.org/wiki/UTF-8#Description
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you
> reply.
>
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla attachment error

antovinraj
In reply to this post by antovinraj
Hi  Thorsten,

Recently we have upgraded Bugzilla version from 3.6.2 to 4.4.6 and upgraded
OS from CentOS release 5.7 to 6.2.

I think IT team copied the old httpd config file and it may caused this
issue.

Also I am spending some time in testing and if any things are broken or not.

Regards,
Antoine.

On Thu, Mar 17, 2016 at 1:29 PM, Thorsten Schöning <[hidden email]>
wrote:

> Guten Tag Antoine Vinodh Raj,
> am Donnerstag, 17. März 2016 um 08:42 schrieben Sie:
>
> > [root@XXX conf]# diff httpd.conf httpd.conf_01
> > 35c35
> > < #SetEnv PERL_UNICODE SD
> > ---
> >> SetEnv PERL_UNICODE SD
> > [root@XXX conf]#
>
> In that case you should spent some time researching why this was set
> in your env the first place, I guess some text encoding issues where
> recognized and resolved by setting this by chance. So especially check
> the input of non ASCII text in Bugzilla, comments, subjects etc., and
> its UTF-8 setting, which encoding is used in the database and such.
>
> It may or may not be that other things break now.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [hidden email]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you
> reply.
>
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.