Setup error, need help

This is the error im getting while setup

Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
Failed to load resource: the server responded with a status of 417 (EXPECTATION FAILED)
desk.min.js?ver=1511018072.63:1637 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 53, in execute_cmd
return, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 935, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/”, line 40, in setup_complete
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/”, line 21, in setup_complete
frappe.throw(_(“Setup Already Complete!!”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 319, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 309, in msgprint
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 282, in _raise_exception
raise raise_exception(encode(msg))
ValidationError: Setup Already Complete!!

no one knows error?

You should wipe your server once again, and try it on a fresh server. Before that, create swap memory for sure, and also your VPS should be 1+GiB to run ERPNext smoothly. Also, increase http_timeout if still problem remains same.

These are basic hacks, you should give a try. This happens mainly due to low configuration server/machine !!

Try reinstalling and completing the setup wizard again.

bench --site sitename reinstall

Please provide more info like the branch you are on, if you ran the wizard earlier etc. so others can try reproducing this.

its a production branch. Its fixed by using an older version of erpnext virtual image. I think the version is 8.x.x. After the setup then we should update the bench nad erpnext. Till now i have tried setting up with all v9, but couldn’t success. So it is better to reinstall virtual image.