Trying to upgrade Intellij IDEA from 2016.2 to 2016.2.5 and I am getting this error:
IDEA does not have write access to /private/var/folders/_q/7md3pcy1
So after talking to Jetbrains support, there's nothing that can be done as they can't duplicate the issue and not enough people have reported it. The patch process doesn't work but you can just download the latest version. Problem solved.