Error upgrading to 2.16 - help!

I just updated to 2.16 and now have this error:

An exception has been thrown during the rendering of a template (“Unable to write in the cache directory (/var/www/vhosts/”) in “@CoreHome/getDefaultIndexView.twig” at line 2.

please help

also just to clarify i did try to set tmp directory recursive to writable even though i have updated many times before with same server settings and there was not a problem. I just dont know how to fix this. Please help

I suggest you simply rename the existing /tmp directory to something else, and then create a new /tmp directory and give it universal read/write/modify (0777) permissions. Piwik should create the required subdirectory structure automatically. If this works, you can delete that previously renamed /tmp directory.

thank you this worked great.