我有一个“文件无法写入磁盘".文件大于等于2MB的ExpressionEngine中出现错误 [英] I am having a "The file could not be written to disk." error in ExpressionEngine with files 2MB and up

查看:80
本文介绍了我有一个“文件无法写入磁盘".文件大于等于2MB的ExpressionEngine中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在获取文件时遇到此问题.无法将文件写入磁盘. ExpressionEngine v2.9.2.上的错误.我注意到我只有2MB及以上的文件存在此问题,在随后的其他帖子中,我没有帮助就关闭了XSS筛选.如果有什么用,那么我有两个正在负载均衡的EC2实例上运行的EE.部署由OpsWorks处理.我还增加了文件上传大小和发布大小,以及ELB连接设置.

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.

推荐答案

所以我发现了问题.默认情况下,AWS使用某种虚拟/tmp目录.因此,我使用了命令df -h,该命令向我显示了我的溢出/tmp"目录只有1M,这是导致无法将其写入磁盘错误的原因.在搜索了解决方法之后,我发现您可以使用sudo umount -l /tmp卸载当前目录,然后使用sudo mount -t tmpfs -o size=10485760,mode=1777 overflow /tmp将该目录设置为10M.

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.

这篇关于我有一个“文件无法写入磁盘".文件大于等于2MB的ExpressionEngine中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆