VNC Server: PID file /home/user/.vnc/ not readable (yet?) after start

Ran into this error on a server recently. We had to kill the VNC server because it stalled having its session running for an extended period.

Because we had to terminate the VNC server it couldn’t cleanly clear it’s tmp files, head into /tmp/.X11-unix/ and you’ll see a number of leftover files.

Each file corresponds to its VNC user allotted slot, remove the sessions files that are problematic and that session should start successfully.

We tried starting the VNC server but it still refused to start, we then proceeded to remove the VNC tmp files at the root of /tmp

This didn’t help either, we then proceed to throw the kitchen sink at Xvnc:

Started the service again:

And Voila!