Error while setting up bench to production mode

from where did you tried ?

1st remove all earlier data then

try this one - GitHub - flexcomng/erpnext_quick_install: Unattended install script for ERPNext Versions, 13, 14 and 15