MoeSaid's avatar

There is no existing directory at ".../storage/logs" and its not buildable: Permission denied

whats up guys ! , i do have some weird issue , project works fine on localhost but once i upload it on server its just gives me that err ,

i have been giving the storage folder 777 Permissions trying to fix the issue but none happen , what would you guys advice me to do !

0 likes
32 replies
bashy's avatar
bashy
Best Answer
Level 65

the ../ means it's probably not getting the write path. Have you set this anywhere or not cleared cache?

3 likes
MoeSaid's avatar

the err am getting is

"/Users/mohamedsaed/Desktop/WORK/0Php/nutflix/storage/logs"

which is pointing out to my localhost , i thought that the log file are writeable and the server will over right it auto ,

and nope i haven't set this anywhere , but yeah i cleared the cash before uploading

bashy's avatar

The path is probably cached somewhere then. How did you upload your app files to the server?

1 like
MoeSaid's avatar

huh i cleared the cache more than once , i uploaded with old school FTP really thankful helping me

bashy's avatar

@mased Yeah doing that way is bound to be cached. Did you do upload the vendor or storage folder via FTP?

davb's avatar

Do you use apache, have you made apache the owner of the project? and restarted apache? and does your server use Selinux?

MoeSaid's avatar

@davb i do use shared host , cant restart apache or some , but i have did deployed more than one laravel app on it and its works just fine i really don't know why i have such an err

thelibrariancat's avatar

Hi! I had this problem and cleared it up by running:

php artisan route:clear

php artisan config:clear

php artisan cache:clear

Not sure which one actually did it, but see if any or all help you.

16 likes
thelibrariancat's avatar

@bashy Yes, I saw that. Just clearing the cache didn't work for me, either, but something about that combination did.

thelibrariancat's avatar

@bashy - Since OP didn't specify exactly which command or commands he ran (could have just done a cache:clear or something), it can't hurt to clarify. OP, if you've already done all of those, sorry.

MoeSaid's avatar

so the issue got fixed when i cleared the config cache

2 likes
beatrix's avatar

@mased hi Mashed, i'm just getting the same error .. could u show me how can i clear the config cache.. it's in laravel or OS ? thanks i used "php artisan cache:clear" but i'm still getting "There is no existing directory at "/var/www/test_indo/storage/logs" and its not buildable: Permission denied"

maron's avatar

just clear cache, it will work like charm..

1 like
minaFaragAmin's avatar

clearing config cache has solved my problem my local env is : Homestead . Nginx

run : php artisan config:clear

MiguelStevens's avatar

Did you all run that command local and then deploy again? Since running the command on the server doesn't work either for me.. It returns that same error we started with

phido's avatar

I tried the three commands but the last one does not work at home it puts me In app.php line 235:    syntax error, unexpected ','

mustafaabdujalil's avatar

Delete Files in bootstrap/config then do this command php artisan optmize:clear

ernyka's avatar

I have the error: "There is no existing directory at "/home/username/Desktop/project-name/storage/logs" and its not buildable: Permission denied",

and The artisan optimize:clear solved my issue(by clearing every cache), but i want to cache my application configuration, and other things for optimization. How can i really solve this problem?

1 like
hillaryudechukwu's avatar

If u have confirmed that the path does exist, you should run " php artisan optimize:clear " in the work directory, fixed it for me

shubhammalik's avatar

INSTALL PHP-DOM MY OS IS FEDORA 40 AND I ENCOUNTERED SAME ISSUE BUT WHEN I INSTALLED PHP-DOM IT SOLVED MY ISSUE sudo dnf install php-dom

Next

Please or to participate in this conversation.