Error while updating discourse installation

try this:

cd /var/discourse
ls containers

You should have either app.yml or web_only.yml.

Given that you have app.yml, you’ll then do this:

./launcher rebuild app