./launcher rebuild app for old 1.6 discourse not working

It’s a good bet that your OS is also beyond end of life, but in any case, I would recommend that you make a backup, create a new installation on a new vm and restore the backup to the new one. This will also save you some steps required to Change the domain name or rename your Discourse.