View Issue Details

IDProjectCategoryView StatusLast Update
0004749mantisbtfeaturepublic2004-11-06 05:59
ReportereX21 Assigned Tothraxisp  
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionfixed 
Product Version0.19.0 
Fixed in Version0.19.1 
Summary0004749: Uploading large files fails & slogs Apache
Description

Uploading large files (>1-2MB) to an issue, though smaller than limit, usually fails (sometimes succeeds). The larger the file, the more likely it is to fail.

The Mantis site does NOT return a response page when this happens. Thereafter the site is flaky (pages sometimes don't return or are slow to return) until I re-start the Apache WebServer.

Additional Information

Smaller files (<400k) always seem to succeed.

TagsNo tags attached.

Relationships

Activities

eX21

eX21

2004-10-20 16:38

reporter   ~0008123

The same thing happens when uploading large project documentation files.

thraxisp

thraxisp

2004-10-21 05:37

reporter   ~0008124

What storage are you using (DISK or DATABASE)?

If DATABASE, have you checked php.ini under the Resource Limits heading? You may be running out of execution time?

Is anything logged in the server?

eX21

eX21

2004-10-22 12:43

reporter   ~0008143

Thanks thraxisp. I checked the Apache logs and found that PHP was exceeding its memory limit of 8M (yikes! for a 1.5M file upload!).

I bumped the limit to 16M and got the following error:

Database query failed. Error received from database was 0002006: MySQL server has gone away for the query: INSERT INTO mantis_bug_file_table
(bug_id, title, description, diskfile, filename, folder, filesize, file_type, date_added, content)
VALUES
(35, '', '', 'uploads/87995118ca2d96636859be99f8021d70', 'CarniglC.2004.07.26.1427.NotherCurveSetChecked.deco', 'uploads/', 1561730, 'text/plain', '2004-10-22 10:45:47', 'OCLI Persistence Engine Version 1.1\nCreated with...[rest of uploaded file]

thraxisp

thraxisp

2004-10-22 13:18

reporter   ~0008144

MySQL also has similar limits for uploading entries (max_packet_size, bulk_insert_buffer).

As an aside, I've been told that MySQL is inefficient for storing large files (>64K). You may want to look at switching your attachment storage to DISK.

eX21

eX21

2004-10-22 18:00

reporter   ~0008146

I didn't know about the DISK option, I much prefer this.

I've changed to that option and now all works well. Thanks for the tip thraxisp.

The powers that be may want to close this issue suggesting

$g_file_upload_method = DISK

as the fix.

thraxisp

thraxisp

2004-10-24 14:01

reporter   ~0008153

Added additional warnings in admin/check.php.