500 Error trying to upgrade discourse

The os is out of date. And the certificate chain is bad. You need a new vm with a new os.

Move a Discourse site to another VPS with rsync is what I would do.

An easier way to do that with a bit more down time is just many a new server and restore a backup.

You should be able to start the old container with

./launcher start app