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/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 935, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py”, line 40, in setup_complete
frappe.get_attr(method)(args)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 21, in setup_complete
frappe.throw(_(“Setup Already Complete!!”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 319, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 309, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, 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 !!

Hi,
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.
Thanks

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.