首先,我意识到这里已经有这样的问题了,我写一篇关于它的新文章的原因是我已经尝试了我在stackoverflow上找到的所有解决方案,但没有一个对我有效。
当我通过composer安装eyewitness包时,我的问题开始了。我通过运行php artisan eyewitness:install
成功地安装了它,没有任何错误。
然而,我注意到,每当我的队列运行时,我都会得到这个错误流到我的松弛通道:
file_put_contents(/var/app/current/storage/framework/cache/data/0b/fd/0bfda67f938654155945b033c84634aaabaa08f3):打开流失败:无此类文件或目录级错误异常`类{“"file_put_contents(/var/app/current/storage/framework/cache/data/0b/fd/0bfda67f938654155945b033c84634aaabaa08f3):”:“
”,“”:“file_put_contents(/var/app/current/storage/framework/cache/data/0b/fd/0bfda67f938654155945b033c84634aaabaa08f3):无法打开流:无此类文件或目录”,“”:0,
“文件”:"/var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122",“跟踪”:[“{\”函数\“:\”handleError\“,\"class\":\"Illuminate\Foundation\Bootstrap\HandleExceptions\",\”类型\“:\”->\“,\"args\":2,\"file_put_contents(/var/app/current/storage/framework/cache/data/0b/fd/0bfda67f938654155945b033c84634aaabaa08f3):无法打开流:没有这样的文件或目录\“,\"/var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php\",122,{\"path\":\"/var/app/current/storage/framework/cache/data/0b/fd/0bfda67f938654155945b033c84634aaabaa08f3\",\"contents\":\"1546808222i:1;\",\"lock\":true}}","/var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122","/var/app/current/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:65","/var/app/current/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:195","/var/app/current/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:262","/var/app/current/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:304","/var/app/current/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:223","/var/app/current/vendor/eyewitness/eye/app/Notifications/Notifier.php:31","/var/app/current/vendor/eyewitness/eye/app/Scheduling/BaseEvent.php:236","/var/app/current/vendor/eyewitness/eye/app/Scheduling/BaseEvent.php:283","/var/app/current/vendor/eyewitness/eye/app/Scheduling/Event.php:55",“/var/app/当前/供应商/目击者/e…
现在,在网上遵循各种解决方案,我做了以下工作:
php artisan cache:clear
php artisan config:clear
php artisan view:clear
php artisan config:cache
php artisan queue:restart
php artisan queue:work &
按照正确的顺序运行上述所有命令后,没有任何更改,错误仍然每分钟记录一次,此时我不知道该怎么办。
我的.env文件中有以下设置:
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=database
发布于 2019-01-07 08:29:20
看起来缺少权限或文件夹。请检查laravel root项目中是否存在以下文件夹
/storage/framework/cache
/storage/framework/views
/storage/framework/sessions
/boostrap/cache
总之,你需要写访问权限。
https://stackoverflow.com/questions/54066578
复制相似问题