View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004749 | mantisbt | feature | public | 2004-10-20 16:36 | 2004-11-06 05:59 |
Reporter | eX21 | Assigned To | thraxisp | ||
Priority | normal | Severity | crash | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.0 | ||||
Fixed in Version | 0.19.1 | ||||
Summary | 0004749: 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. | ||||
Tags | No tags attached. | ||||
The same thing happens when uploading large project documentation files. |
|
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? |
|
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 |
|
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. |
|
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. |
|
Added additional warnings in admin/check.php. |
|