After i rebuild get below error return #<Process::Status: pid 1631 exit 1

Did you play with the ownership of the directory under /var/discourse/shared or any of it’s subdirectories? This will break the install.

If you site was empty, you can remove /var/discourse and re-do the install.