I am having a “The file could not be written to disk.” error in ExpressionEngine with files 2MB and up

…衆ロ難τιáo~ 提交于 2020-01-02 05:23:27

问题


Has anyone had this issue where they are getting a The file could not be written to disk. error on ExpressionEngine v2.9.2. I notice I am only having this issue with files 2MB and up and in following other posts I have turned off XSS filtering with no help. If it means anything I have EE running on two EC2 instances that are being load balanced. Deployments are handled with OpsWorks. I have also increased file upload size and post size, as well as the ELB connection settings.


回答1:


So I found the issue. AWS uses some sort of virtual /tmp directory by default. So I used the command df -h which showed me that my "overflow /tmp" directory was only 1M which is what caused the could not be written to disk error. After searching how to fix that I found that you could use sudo umount -l /tmp to unmount the current directory and then use sudo mount -t tmpfs -o size=10485760,mode=1777 overflow /tmp to make that directory 10M.



来源:https://stackoverflow.com/questions/34618271/i-am-having-a-the-file-could-not-be-written-to-disk-error-in-expressionengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!