[英]Magento FPC throwing “failed to open stream: No such file or directory”
Our Magento started throwing this error for Full Page Cache entries two days ago, and is constantly flooding the log. 我们的Magento两天前开始为Full Page Cache条目抛出此错误,并且不断充斥日志。 No errors on front though but it seems , judging by the speed, that it's not cached. 虽然前面没有错误,但似乎从速度来看,它没有被缓存。 So log is full of this: 所以日志充满了这个:
DEBUG (7): file_get_contents(/...var/full_page_cache//mage--tags/mage---713_CATALOG_PRODUCT_67229): failed to open stream: No such file or directory ...lib/Mage/Cache/Backend/File.php
Installed new magento in a subdir, all works fine. 在子目录中安装了新的magento,一切正常。 reverted code to three months ago, same error. 恢复代码到三个月前,同样的错误。 disabled all custom modules, no effect. 禁用所有自定义模块,没有效果。 permissions seem alright, cause magento can write to all folders. 权限似乎没问题,导致magento可以写入所有文件夹。
one peculiar behaviour we noticed is that a file gets created in var/full_page_cache and then immidiately disappears.. only mage--tags
stays populated.. we had redis installed and handling FPC, errors started showing up after we disabled it (and Magento fell back to its own FPC) 我们注意到的一个特殊行为是文件在var / full_page_cache中创建然后立即消失..只有mage--tags
保持填充..我们安装了redis并处理FPC,我们禁用它后错误开始出现(并且Magento掉了下来)回到自己的FPC)
Any ideas? 有任何想法吗?
UPDATE: The errors get spawned while Navision sync (Using magento api) is working. 更新:导航同步(使用magento api)工作时会产生错误。
Check your cache path from error log: 检查错误日志中的缓存路径:
file_get_contents(/...var/full_page_cache//mage--tags/mage---713_CATALOG_PRODUCT_67229): failed to open stream: No such file or directory ...lib/Mage/Cache/Backend/File.php
Path is incorrect in '...full_page_cache//mage--tags...' part. “... full_page_cache // mage - tags ...”部分中的路径不正确。 Change // to / and issue gone. 改变//到/并且问题消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.