I Have an Issue With Swap File (2GB) During Installation

From the output you provided it would appear that you have a 1 GB swap file, not a 2 GB one as required by Discourse. I’d suggest disabling the existing swap file by running

swapoff /swapfile

then running

./discourse-setup

again so it can create the 2 GB file. Did you previously set up a 1 GB swap file?