Check permissions of storage/framework/cache/data just to define 777 to the storage/framework/cache won't be enough, you should also give the webserver user permissions to write into that folder, typically the user is: www-data or _www.
The right thing is to have 775 permissions to this folder then change only the grupo to allow both your user and the webserver user to write into those folders.
Run this in shell
chmod 775 storage/framework/cache
chmod 775 storage/framework/cache/data
sudo chgrp www-data storage/framework/cache
sudo chgrp www-data storage/framework/cache/data