Error upgrading

Are you using our official docker install?

If you are, try a rebuild:

ssh root@server
cd /var/discourse
./launcher rebuild app