使用laravel缓存,上传文件时,日志偶尔会:failed to open stream: No such file or directory


环境:LNMP;PHP 版本 7.2;Laravel 版本 5.6。阿里云服务器。代码管理码云。

在laravel.log里面偶尔会有:

[2019-06-12 22:12:12] Test.ERROR: file_put_contents(/data/wwwroot/bxf/server/storage/framework/cache/data/aa/e4/aae4647dd4d1e169e0959f1194eec92594242fbb): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): file_put_contents(/data/wwwroot/bxf/server/storage/framework/cache/data/aa/e4/aae4647dd4d1e169e0959f1194eec92594242fbb): failed to open stream: No such file or directory at /data/wwwroot/bxf/server/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)

[stacktrace]

这样的报错

已经检查路径及缓存文件存在,每层目录权限存在,找了好久没找到问题,但是对功能没有影响。各位大佬有遇到的吗?是什么问题造成的呢?


点赞 取消点赞 收藏 取消收藏

<< 上一篇: 编写composer包如何提供全局函数

>> 下一篇: windows安装homestead之后laravel访问不了