简体   繁体   English

Magento FPC投掷“无法打开流:没有这样的文件或目录”

[英]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.

相关问题 Magento后端扩展无法打开流:没有此类文件或目录 - Magento backend extension failed to open stream: No such file or directory 无法打开流:Magento自定义付款方式上没有此类文件或目录 - failed to open stream: No such file or directory on Magento Custom Payment Method 警告:包括无法打开流:magento帮助器中没有此类文件或目录 - Warning: include failed to open stream: No such file or directory in magento helper Magento 2无法打开流:没有这样的文件或目录“ vendor / magento / framework / registration.php” - Magento 2 failed to open stream: No such file or directory 'vendor/magento/framework/registration.php' magento-警告:require_once(app / Mage.php):无法打开流:没有此类文件或目录 - magento - Warning: require_once(app/Mage.php): failed to open stream: No such file or directory 模块:无法打开流:没有此类文件或目录 - module: failed to open stream: No such file or directory 无法在magento模块上打开流 - failed to open stream on magento module 警告:包含(FME / Manufacturers / Controller / Router.php):无法打开流:没有此类文件或目录 - Warning: include(FME/Manufacturers/Controller/Router.php): failed to open stream: No such file or directory 将Magento从子目录移动到根目录会导致“无法打开流”错误 - Moving Magento from subdirectory to root causes 'failed to open stream' errors Magento地理定位/ FPC - Magento Geolocalization/FPC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM