Can't upload large file when /tmp is too small

Bug #781002 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Robert Lyon
15.10
Fix Released
Undecided
Unassigned

Bug Description

Sam encountered a problem uploading a 16 MB file: http://master.dev.mahara.org/view/view.php?id=1309

As admin I received the following message:

You have been sent a notification from Mahara: Master Branch. Message follows:
------------------------------------------------------------------------

Subject: A file upload error was probably caused by your server configuration.

An error occurred during file upload: Failed to write file to disk. (Error code 7)

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Ok. Found a 16 MB file on my computer and uploaded it to a Mahara 1.4alpha and to master.dev. Both times no error message. I'll ask Sam to try again with a different file.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Sam sent me her file. I can't upload it to master either, but it works on another Mahara 1.4.

Revision history for this message
François Marier (fmarier) wrote :

We should upgrade master.dev and make sure that this bug is fixed or that it's caused by a low php.ini upload limit.

Changed in mahara:
milestone: none → 1.4.0
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
François Marier (fmarier) wrote :

Could it be related to bug#781426 ?

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Possibly, but this one's a bit different, you get that weird "Cannot write to disk" error.

Changed in mahara:
assignee: nobody → Richard Mansfield (richard-mansfield)
Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

This is not a Mahara bug, it's due to the size of /tmp on the vserver running master.dev. I think we should just live with it, we're planning to move master.dev soon anyway.

Changed in mahara:
status: Triaged → Invalid
milestone: 1.4.0 → none
Robert Lyon (robertl-9)
Changed in mahara:
status: Invalid → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/5413

Revision history for this message
Robert Lyon (robertl-9) wrote :

As client is having this problem I will make a patch to give more helpful info in the error message as to what needs to be fixed

summary: - Can't upload 16MB file to master.dev
+ Can't upload large file when /tmp is too small
Changed in mahara:
assignee: Richard Mansfield (richard-mansfield) → Robert Lyon (robertl-9)
milestone: none → 15.10.1
importance: Medium → Low
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5413
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/7ff53714fa57fbdf16393694e77b9610b9f34715
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 7ff53714fa57fbdf16393694e77b9610b9f34715
Author: Robert Lyon <email address hidden>
Date: Thu Oct 1 14:42:57 2015 +1300

Bug 781002: Make the 'Failed to write file to disk' message a bit more helpful.

Alert users that it could be due thier tmp directory being too small for the file

behatnotneeded

Change-Id: I2491d656e87d5b8b3802a63113080afccf7b4452
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "15.10_STABLE" branch: https://reviews.mahara.org/5531

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5531
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/8e0bcf261c5d4cc58c8ca78f04956bbbd7c5f7ed
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE

commit 8e0bcf261c5d4cc58c8ca78f04956bbbd7c5f7ed
Author: Robert Lyon <email address hidden>
Date: Thu Oct 1 14:42:57 2015 +1300

Bug 781002: Make the 'Failed to write file to disk' message a bit more helpful.

Alert users that it could be due thier tmp directory being too small for the file

behatnotneeded

Change-Id: I2491d656e87d5b8b3802a63113080afccf7b4452
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 7ff53714fa57fbdf16393694e77b9610b9f34715)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.10.1 → 15.10.0
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.