Invalid location error after update

A rebuild is probably what you need.

cd /var/discourse 
./launcher rebuild app