Laravel 5.1: ErrorException in file_put_contents() error,possibly out of free disk space

╄→尐↘猪︶ㄣ 提交于 2019-12-05 17:10:34

I just freed / cleared the laravel.log file in the storage/logs folder.

Also clearing cache& sessions folders in storage/framework folder can help.

It just cleared the error and the login page was loaded again !

The main issue is laravel.log file. For me the file size has grown upto 24G, clearing the file made everything fine.

Use command sudo truncate -s 0 <filename> to clear it.

This is because your server HDD is full or almost Full.

Check by this command

df -h

This will show the stats. figure out where you are storing large chunk of files and delete them.

clear the following folders in laravel project folder

rm -rf storage/framework/cache/
// this will logout presently logged in users
rm -rf storage/framework/sessions/
rm -rf storage/framework/sessions/views/

freeup this file

> storage/logs/laravel.log

you need to clear the cache by running this command

php artisan cache:clear

General / permanent for this is to increase the disk space of the system. or making the cron job to clear the laravel log file at every certain period of time.

Try clearing Composer's cache by running composer clear-cache

I had same issue clearing cache helps

php artisan cache:clear
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!