首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法打开流:没有这样的文件或目录错误

无法打开流:没有这样的文件或目录错误
EN

Stack Overflow用户
提问于 2019-01-07 06:38:48
回答 1查看 9.7K关注 0票数 2

首先,我意识到这里已经有这样的问题了,我写一篇关于它的新文章的原因是我已经尝试了我在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

  • run php artisan config:clear

  • run php artisan view:clear

  • run php artisan config:cache

  • run php artisan queue:restart

  • run php artisan queue:work &

  • 导航到我的bootstrap/文件夹并删除了所有内容。
  1. 运行bootstrap

按照正确的顺序运行上述所有命令后,没有任何更改,错误仍然每分钟记录一次,此时我不知道该怎么办。

我的.env文件中有以下设置:

代码语言:javascript
复制
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=database
EN

回答 1

Stack Overflow用户

发布于 2019-01-07 08:29:20

看起来缺少权限或文件夹。请检查laravel root项目中是否存在以下文件夹

代码语言:javascript
复制
/storage/framework/cache
/storage/framework/views
/storage/framework/sessions
/boostrap/cache 

总之,你需要写访问权限。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54066578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档