简体   繁体   中英

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. 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. reverted code to three months ago, same error. disabled all custom modules, no effect. permissions seem alright, cause magento can write to all folders.

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)

Any ideas?

UPDATE: The errors get spawned while Navision sync (Using magento api) is working.

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. Change // to / and issue gone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM