I tried upgrading to mautic 2.13.1 again and am having the same problem.
Install crashed at last step when it is clearing cache.
My server is an Ubuntu 16.04 with ISPConfig.
I have ungraded in the past with no problem.
Prior to this upgrade there were files in the /var/www/clients/client1/web6/web/mautic/app/cache/prod and owner/group of all folders are web6/client1
After the crash, the ip_data, prod and run folders remain while the files within those folders are gone.
Given that upgrades have worked in the past, and permissions have not been changed, I have to think that there is an issue with the update.