An image upload error caused by running out of server disk space

  

I received a bug report this morning: ”discuzX could not upload the image“.

Tracking the program running log. After receiving the file, the server interrupts the error when generating the image file from the temporary file. First, it is suspected that it is a disk permission. There is no problem checking the file permissions.

Then I started checking the program code and found no exceptions. Another site that accidentally entered the server was running and found the same error. The error is still overwritten after the development environment code is over.

Check the apache log, find the error, and the file write fails. Enter the following command:

df -hl

Well, the remaining space on the disk is 0, I am dizzy. It turns out that the data backup will run out of space!

Record it! !

Copyright © Windows knowledge All Rights Reserved