Closed OxMarco closed 4 years ago
@grcasanova Please provide the full stack trace an package version. Initially, this seems like a project or server configuration issue. I have not experienced this issue at all, neither in testing nor production.
@grcasanova @mikebronner Sometimes the same thing happens to me randomly.
I paste the stack trace for help.
file_put_contents(/var/app/current/storage/framework/cache/data/8a/9a/8a9a2e4d612e99d16fcfca7f8db03cca4e756ebb): failed to open stream: No such file or directory {"userId":15,"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/app/current/storage/framework/cache/data/8a/9a/8a9a2e4d612e99d16fcfca7f8db03cca4e756ebb): failed to open stream: No such file or directory at /var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'file_put_conten...', '/var/app/curren...', 122, Array)
#1 /var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/app/curren...', '9999999999a:2:{...', 2)
#2 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(65): Illuminate\\Filesystem\\Filesystem->put('/var/app/curren...', '9999999999a:2:{...', true)
#3 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(121): Illuminate\\Cache\\FileStore->put('88427e6955f4e6d...', Array, 0)
#4 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(355): Illuminate\\Cache\\FileStore->forever('88427e6955f4e6d...', Array)
#5 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(418): Illuminate\\Cache\\Repository->forever('88427e6955f4e6d...', Array)
#6 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(357): Illuminate\\Cache\\Repository->rememberForever('88427e6955f4e6d...', Object(Closure))
#7 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(292): Illuminate\\Cache\\CacheManager->__call('rememberForever', Array)
#8 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(231): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->retrieveCachedValue(Array, 'genealabs:larav...', Array, '88427e6955f4e6d...', 'get')
#9 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(97): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->cachedValue(Array, 'genealabs:larav...')
#10 /var/app/current/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php(558): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->get(Array)
#11 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(290): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->first()
#12 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(418): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->GeneaLabs\\LaravelModelCaching\\Traits\\{closure}()
#13 /var/app/current/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(357): Illuminate\\Cache\\Repository->rememberForever('40f3c03e6d0753c...', Object(Closure))
#14 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(292): Illuminate\\Cache\\CacheManager->__call('rememberForever', Array)
#15 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(231): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->retrieveCachedValue(Array, 'genealabs:larav...', Array, '40f3c03e6d0753c...', 'first')
#16 /var/app/current/vendor/genealabs/laravel-model-caching/src/Traits/Buildable.php(77): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->cachedValue(Array, 'genealabs:larav...')
#17 /var/app/current/app/Vigilance.php(137): GeneaLabs\\LaravelModelCaching\\CachedBelongsToMany->first()
#18 /var/app/current/app/Policies/VigilancePolicy.php(68): App\\Vigilance->investigationParent()
#19 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(706): App\\Policies\\VigilancePolicy->view(Object(App\\User), Object(App\\Vigilance))
#20 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(659): Illuminate\\Auth\\Access\\Gate->callPolicyMethod(Object(App\\Policies\\VigilancePolicy), 'view', Object(App\\User), Array)
#21 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(469): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}(Object(App\\User), Object(App\\Vigilance))
#22 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(366): Illuminate\\Auth\\Access\\Gate->callAuthCallback(Object(App\\User), 'view', Array)
#23 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(331): Illuminate\\Auth\\Access\\Gate->raw('view', Array)
#24 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(277): Illuminate\\Auth\\Access\\Gate->inspect('view', Object(App\\Vigilance))
#25 /var/app/current/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php(213): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}('view', 0)
#26 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(278): Illuminate\\Support\\Collection->every(Object(Closure))
#27 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Auth/Access/Authorizable.php(18): Illuminate\\Auth\\Access\\Gate->check('view', Object(App\\Vigilance))
#28 /var/app/current/app/Policies/EventVigilancePolicy.php(26): Illuminate\\Foundation\\Auth\\User->can('view', Object(App\\Vigilance))
#29 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(706): App\\Policies\\EventVigilancePolicy->view(Object(App\\User), Object(App\\EventVigilance))
#30 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(659): Illuminate\\Auth\\Access\\Gate->callPolicyMethod(Object(App\\Policies\\EventVigilancePolicy), 'view', Object(App\\User), Array)
#31 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(469): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}(Object(App\\User), Object(App\\EventVigilance))
#32 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(366): Illuminate\\Auth\\Access\\Gate->callAuthCallback(Object(App\\User), 'view', Array)
#33 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(331): Illuminate\\Auth\\Access\\Gate->raw('view', Array)
#34 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(277): Illuminate\\Auth\\Access\\Gate->inspect('view', Object(App\\EventVigilance))
#35 /var/app/current/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php(213): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}('view', 0)
#36 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(278): Illuminate\\Support\\Collection->every(Object(Closure))
#37 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Auth/Access/Authorizable.php(18): Illuminate\\Auth\\Access\\Gate->check('view', Object(App\\EventVigilance))
#38 /var/app/current/app/Policies/EventVigilancePolicy.php(131): Illuminate\\Foundation\\Auth\\User->can('view', Object(App\\EventVigilance))
#39 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(706): App\\Policies\\EventVigilancePolicy->update(Object(App\\User), Object(App\\EventVigilance))
#40 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(659): Illuminate\\Auth\\Access\\Gate->callPolicyMethod(Object(App\\Policies\\EventVigilancePolicy), 'update', Object(App\\User), Array)
#41 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(469): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}(Object(App\\User), Object(App\\EventVigilance))
#42 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(366): Illuminate\\Auth\\Access\\Gate->callAuthCallback(Object(App\\User), 'update', Array)
#43 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(331): Illuminate\\Auth\\Access\\Gate->raw('update', Array)
#44 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(277): Illuminate\\Auth\\Access\\Gate->inspect('update', Object(App\\EventVigilance))
#45 /var/app/current/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php(213): Illuminate\\Auth\\Access\\Gate->Illuminate\\Auth\\Access\\{closure}('update', 0)
#46 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php(278): Illuminate\\Support\\Collection->every(Object(Closure))
#47 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Auth/Access/Authorizable.php(18): Illuminate\\Auth\\Access\\Gate->check('update', Object(App\\EventVigilance))
#48 /var/app/current/app/Media.php(36): Illuminate\\Foundation\\Auth\\User->can('update', Object(App\\EventVigilance))
#49 /var/app/current/app/Http/Controllers/MediaController.php(532): App\\Media->getModalFooterMedia()
#50 /var/app/current/app/Http/Controllers/MediaController.php(105): App\\Http\\Controllers\\MediaController->createPhotoObject(Object(App\\Media), 'https://www.onl...')
#51 [internal function]: App\\Http\\Controllers\\MediaController->store(Object(Illuminate\\Http\\Request))
#52 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#53 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('store', Array)
#54 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\MediaController), 'store')
#55 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\\Routing\\Route->runController()
#56 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\\Routing\\Route->run()
#57 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#58 /var/app/current/app/Http/Middleware/AllowOnlyAjaxRequests.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\\Http\\Middleware\\AllowOnlyAjaxRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /var/app/current/app/Http/Middleware/LockAccount.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\\Http\\Middleware\\LockAccount->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /var/app/current/app/Http/Middleware/ReadNotification.php(43): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\\Http\\Middleware\\ReadNotification->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /var/app/current/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(43): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(76): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /var/app/current/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /var/app/current/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /var/app/current/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /var/app/current/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#80 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#81 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#82 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#83 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#84 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#85 /var/app/current/vendor/beyondcode/laravel-query-detector/src/QueryDetectorMiddleware.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#86 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): BeyondCode\\QueryDetector\\QueryDetectorMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /var/app/current/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /var/app/current/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): RenatoMarinho\\LaravelPageSpeed\\Middleware\\PageSpeed->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /var/app/current/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): RenatoMarinho\\LaravelPageSpeed\\Middleware\\PageSpeed->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /var/app/current/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): RenatoMarinho\\LaravelPageSpeed\\Middleware\\PageSpeed->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /var/app/current/app/Http/Middleware/RedirectMainDomain.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\\Http\\Middleware\\RedirectMainDomain->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 /var/app/current/vendor/spatie/laravel-pjax/src/Middleware/FilterIfPjax.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Spatie\\Pjax\\Middleware\\FilterIfPjax->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#99 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#100 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#101 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#102 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#103 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#104 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#105 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#106 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#107 /var/app/current/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#108 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#109 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#110 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#111 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#112 /var/app/current/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#113 {main}
"}
Vigilance.php
public function investigations(){
return $this->belongsToMany('App\Investigation')->withTimestamps();
}
public function investigationParent(){
return $this->investigations()->where('investigations.parent_id', 0)->first(); ///app/Vigilance.php(137)
}
EventVigilance.php
public function vigilance() {
return $this->belongsTo('App\Vigilance');
}
Thanks for the stack trace. I don't believe this has anything to do with this plugin, as the error is happening with the cache driver in Laravel. Which cache driver are you using? If you are using the file cache driver, there may be write delays, and other concurrency problems. Those have not been tested, and are largely up to configuration and system performance.
@mikebronner Yes, I am using the file cache driver. That's probably the reason. In a short time I will switch to redis anad I will be able to check if it stops happening.
Thanks!
I think the issue is due to the file driver being used and can be closed now
Fresh larval 6.0 installation on a Mac OS Mojave 10.14.6 with PHP 7.1 When trying to retrieve a model with
Model::all()
with the Cachable trait, it results in afile_put_contents(/path/to/storage/framework/cache/data/2c/70/2c707dcbc4c7170cb97cccd70bb8d3aebb20b11e): failed to open stream: No such file or directory
Path permissions should be already set up. Error happens occasionally with all cached models.