I used the instructions on this site:
to install VNC server on my Ubuntu 14.04. It worked fine. I could login using VNC Viewer 5.1.1 from Windows. Today I did apt-get upgrade and restarted. After restarting the machine, I could not login either using VNC (Connection Refused 10061) or on the console. syslog showed a problem reading ~/.ICEauthority so I chowned that and now can login on the console but VNC still gives 'Connection refused.'
When I try to start vncviewer from a shell, I get:
Wrong type or access mode of /home/jjen009/.vnc.