Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adobe's avatar
Level 3

Session storage FileSystem error

Hello everyone. This is my first install laravel and i'm really don't understand what happening: After change template, i got an error:

file_put_contents(D:\Dropbox\projects\laravel\storage\framework/sessions/wclRtWKPD3ngugnDA7npV7dHTu5yAC46emg2fqcs): failed to open stream: No such file or directory

The most weird that i run my App on remote web server. But error show me allegedly i run on local (dropbox folder). I cleared cache (on remote server and local) 777 permitions on storage folder of course.

I can assume that something was compiled on local machine and somewhere keeping "local path"

0 likes
5 replies
robrogers3's avatar

in tinker or in a route.

dump storage_path('framework/sessions'),

and let's see what it says

adobe's avatar
Level 3

"/var/www/laravel/data/www/laravel.dev.host.ru/storage/framework/sessions"

looks good.

In session config

'driver' => env('SESSION_DRIVER', 'file'),

'files' => storage_path('framework/sessions'),

robrogers3's avatar

can you grep your project for '(D:\Dropbox' ?

grep -R Dropbox *

did you run artisan view:clear ?

adobe's avatar
Level 3

I searched already in wholde project. Empty. I had clear and via command view:clear and manually but error on SESSION folder:

ErrorException (E_WARNING) file_put_contents(D:\Dropbox\projects\laravel\storage\framework/sessions/wclRtWKPD3ngugnDA7npV7dHTu5yAC46emg2fqcs): failed to open stream: No such file or directory

adobe's avatar
Level 3

I found the reason. In bootstrap folder cache file the string path with Dropbox was double slashes (quoted). Search result was empty

Please or to participate in this conversation.